jankowskib / FELix

An open-source flash tool for Allwinner
45 stars 11 forks source link

A20 nand flash #5

Open milosladni opened 7 years ago

milosladni commented 7 years ago

Hello, Have you ever test this with A20? I have tried but without success. If you have a time we can debug together.. Some outputs:

milos@debian8VM:~/A20/FELix$ sudo ./felix -v -f --mbr-dump FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk!

milos@debian8VM:~/A20/FELix$ milos@debian8VM:~/A20/FELix$ sudo ./felix -v -f --info FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk!

milos@debian8VM:~/A20/FELix$ milos@debian8VM:~/A20/FELix$ sudo ./felix -v -f --reboot FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk!

milos@debian8VM:~/A20/FELix$ milos@debian8VM:~/A20/FELix$ sudo ./felix -v -f --flash ./temp/debian_wheezy_7.4_core.img FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk!

milos@debian8VM:~/A20/FELix$ milos@debian8VM:~/A20/FELix$ sudo ./felix -v -f --status-storage FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk!

Can this tool flash A20 nand, becaouse this is only feature that i need.. Because i get message "[FATAL] That functionality isn't finished yet!" when try to flash.

Thanks, Milos

jankowskib commented 7 years ago

To use these commands you need to put device into FES mode first. You have an ancient bootloader in your firmware image, and I haven't implemented support for it yet because of big differences in bootloader structures, so you have that 'That functionality isn't finished yet' message. I'd like to see an image content. Please give me an output of felix --image-info <image.img>

milosladni commented 7 years ago

Hello,

Yes i know that device have to switch into FES mode. I press uboot button during butting, same as in PhoenixSuite tools. Maybe i can upload my image on some server and give you link for downloading it this can be usefull for you..

Here is output: milos@debian8VM:~/A20/FELix$ sudo ./felix -v --image-info image/debian_wheezy_7.4_core_A20.img [sudo] password for milos: image_format 0x300 len_low 430 MB item_count 39 Items sys_config.fex @ 0x0000a000 [57 kB] => COMMON
sys_partition.fex @ 0x00018800 [2 kB] => COMMON
split_xxxx.fex @ 0x00019400 [0 kB] => COMMON
boot0_nand.bin @ 0x00019800 [24 kB] => BOOT
boot0_sdcard.fex @ 0x0001f800 [24 kB] => 12345678 boot1_nand.fex @ 0x00025800 [432 kB] => 12345678 boot1_sdcard.fex @ 0x00091800 [304 kB] => 12345678 /home/mike/awsom-build/out/../eFex/usb/aultools.fex @ 0x000dd800 [149 kB] => UPFLYTLS /home/mike/awsom-build/out/../eFex/usb/aultls32.fex @ 0x00103000 [136 kB] => UPFLTL32 /home/mike/awsom-build/out/../eFex/usb/toolsb.fex @ 0x00125400 [167 kB] => PXTOOLSB /home/mike/awsom-build/out/../eFex/usb/fes_1-1.fex @ 0x0014f000 [0 kB] => FES
/home/mike/awsom-build/out/../eFex/usb/fes_1-2.fex @ 0x0014f400 [2 kB] => FES
/home/mike/awsom-build/out/../eFex/usb/fes_2.fex @ 0x00150000 [1 kB] => FES
/home/mike/awsom-build/out/../eFex/usb/fes.fex @ 0x00150800 [81 kB] => FES
/home/mike/awsom-build/out/../eFex/usb/hw_scan.axf @ 0x00165000 [155 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/update_boot0.axf @ 0x0018c000 [141 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/update_boot1.axf @ 0x001af800 [163 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/fet_restore.axf @ 0x001d8800 [4 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/magic_cr_start.fex @ 0x001d9c00 [0 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/magic_cr_end.fex @ 0x001da000 [0 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/magic_de_start.fex @ 0x001da400 [0 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/magic_de_end.fex @ 0x001da800 [0 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/fed_nand.axf @ 0x001dac00 [168 kB] => FED
/home/mike/awsom-build/out/../eFex/card/cardtool.fex @ 0x00205000 [80 kB] => 12345678 /home/mike/awsom-build/out/../eFex/card/cardscript.fex @ 0x00219000 [1 kB] => 12345678 sunxi_mbr.fex @ 0x00219800 [64 kB] => 12345678 dlinfo.fex @ 0x00229800 [16 kB] => 12345678 /home/mike/awsom-build/out/../eFex/usb/card_update_boot0.axf @ 0x0022d800 [20 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/card_update_boot1.axf @ 0x00232c00 [19 kB] => FET
/home/mike/awsom-build/out/../eFex/usb/fed_card.axf @ 0x00237c00 [26 kB] => FED
/home/mike/awsom-build/out/../eFex/usb/card_HW_scan.axf @ 0x0023e800 [18 kB] => FET
bootloader.fex @ 0x00243400 [10379 kB] => RFSFAT16 Vbootloader.fex @ 0x00c66000 [0 kB] => RFSFAT16 env.fex @ 0x00c66400 [128 kB] => RFSFAT16 Venv.fex @ 0x00c86400 [0 kB] => RFSFAT16 boot.fex @ 0x00c86800 [11254 kB] => RFSFAT16 Vboot.fex @ 0x01784000 [0 kB] => RFSFAT16 rootfs.fex @ 0x01784400 [417095 kB] => RFSFAT16 Vrootfs.fex @ 0x1aed6400 [0 kB] => RFSFAT16 milos@debian8VM:~/A20/FELix$

jankowskib commented 7 years ago

Uboot button put device in FEL mode, you need FES. Check if this switch device to FES felix --tofes <image.img> then felix --status

milosladni commented 7 years ago

Okay, i tried.. First it switch to FEL mode by pressing uboot button during booting and then i think it switch to FES mode by --tofes command as you suggested but what next? Sorry, i can not attach file with output, so i have to put it here..

milos@debian8VM:~/A20/FELix$ sudo ./felix -v --tofes image/debian_wheezy_7.4_core_A20.img FELix 1.0 RC6 by Lolet Warning: I don't give any warranty on this software. You use it at own risk! ────────────────────────────────────

zopter commented 3 years ago

Hi, I have the same problem that Milos describes.

Is there any new information about A20 and nand flash?

I also tried flashing firmware with

"sudo ./felix -v --tofes"

but after writing the image into memory nothing else is possible. When executing:

"sudo ./felix -v --status"

I'm also getting endless "--> ( 32) USBWrite (Prepare for write of 16 bytes)"

Thank you for reading.