As a sign of gratitude to carrolcoo, I will write this post in English.
In case any other non-swedes find this thread in the future.
The following is a write-up of my successful result, followed by some guidance for any future readers on how to save your printer (some Linux experience needed..).
I received the two backups, and installed them onto my SD card that I've mounted in my printer and tried booting it. Turns out, it wasn't quite that simple.
It booted, but it did not fully start the GUI application.
It just kept printing this over and over:
UIEW_Entry :: TL is not ready :: Wait 1 seconds
UI Comm Errro :: Count [3]
Then I started analyzing the output prior to that, and found the following:
[PBA] Not PBA Mode: (1, 1) !!!
[ 16.532409] MAA_driver: disagrees about version of symbol module_layout
insmod: can't insert '/etc/drivers/MAA_driver.ko': invalid module format
[ 16.576171] musb_hdrc: disagrees about version of symbol module_layout
insmod: can't insert '/etc/drivers/musb_hdrc_dma.ko': invalid module format
[ 16.607177] g_ether: disagrees about version of symbol module_layout
insmod: can't insert '/etc/drivers/g_ether.ko': invalid module format
ifconfig: SIOCSIFADDR: No such device
Okay, some drivers it did not like. I would guess that the Linux kernel is not identical between our two boards, and the kernel was not included in the backups.
Luckily, I previously spent some time extracting as much as I could from my broken flash memory, and I had successfully extracted these three drivers.
And after switching them out (there were some more drivers in the /etc/drivers folder, I changed them all), it works beautifully!
All that was left to do was to modify environment variables in U-boot to always use the SD card. I did that with the following commands:
Kod: Markera allt
setenv mmcargs "setenv bootargs console=\${console} root=/dev/mmcblk0p1 rw rootfstype=ext3 rootdelay=1 androidboot.console=ttyS0 mem=\${mem} init=/init ip=off mpurate=\${mpurate} omap_vout.vid1_static_vrfb_alloc=y"
setenv mmcboot "mmc init; echo Booting from nand ...;run mmcargs; nand read \${loadaddr} 280000 200000; bootm \${looadaddr}"
setenv bootcmd "run mmcboot"
I have attached both backups from Carrolcoo, and the resulting rootfs I used on my printer to this post.
Due to forum limitation, I had to split the archive up in multiple volumes and change the file extension. In order to unpack, download all the files and remove the ".txt" in the end of the files. Then they can be extracted using for example WinRAR.
In the archive, I've also included a raw data dump of all partitions of the NAND flash from my printer for what its worth. May be possible to extract some files or the kernel if needed.
Format an microSD card with EXT3 file format, then extract one of the .tar.gz files from the archive onto the card. This needs to be done using a Linux based OS due to Windows not having ext3 support.
Solder an SD card holder onto the display PCB, and insert the micro SD.
Not sure of the exact model micro SD card holder I used, something I had laying around. But most models with the pins accessible should probably work.
I don't remember for sure, but I assume that I did short the Card Detect pin to ground (not visible when card holder is mounted)
20240112_184900.jpg
Connect a 3.3V USB to UART converter to the debug port. The pinout is (left to right):
1. GND
2. RX
3. TX
4. ?
5. ?
Baud rate is 115200.
20240112_184928.jpg
Stop the boot process in U-boot by pressing any key during the first seconds after powering on the printer. Modify environment as per above (during initial tests, skip the saveenv command).
Then try booting with "run bootcmd".
Du har inte behörighet att öppna de filer som bifogats till detta inlägg.