Buildroot SD card Firefly image boot fails with: "failed to find part:boot&

Tested on Buildroot 2016.05 and master @ a26aa9686ad457d208df3b85a39c9befa04caaa3

Here’s the image for convenience: https://github.com/cirosantilli/media/blob/bc206d0c3aed5e85b4fd68346ce99db8b334c0ce/buildroot-firefly-sdcard-2016.05.img but it is just simply generated with the defconfig from buildroot.

Followed instructions under board/firefly/firefly-rk3288/readme.txt

Then from a TTL I see:

    arm pll = 600000000HZ
    periph pll = 300000000HZ
    ddr pll = 200000000HZ
    codec pll = 594000000HZ
Board:  Rockchip platform Board
DRAM:  Found dram banks:1
Adding bank:0000000000000000(0000000080000000)
128 MiB
SDCard Update.
storage init OK!
Using default environment

GetParam
W: Invalid Parameter's tag (0x7BD32A6C)!
Invalid parameter
W: Invalid Parameter's tag (0xF07F8F7D)!
Invalid parameter
W: Invalid Parameter's tag (0xAE8ED94E)!
Invalid parameter
W: Invalid Parameter's tag (0x5EFFD968)!
Invalid parameter
W: Invalid Parameter's tag (0xEDDF0B28)!
Invalid parameter
W: Invalid Parameter's tag (0xE89DA830)!
Invalid parameter
W: Invalid Parameter's tag (0x00000802)!
Invalid parameter
W: Invalid Parameter's tag (0x00000000)!
Invalid parameter
failed to find part:boot
failed to prepare fdt from boot!
failed to find part:resource
failed to prepare fdt from resource!
no adc node
can't find dts node for led
can't find dts node for ricoh619
can't find dts node for act8846
can't find dts node for rk808
can't find dts node for rk818
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 0000-00-00#0.00
empty serial no.
unknown reboot type 1
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [0]
no fuel gauge found
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:backup
'backup' does not seem to be a partition nor an address
Unable to boot:backup
try to start rockusb

but get no shell.

The official Ubuntu image worked on my sdcard.

On buildroot’s bugtracker: https://bugs.busybox.net/show_bug.cgi?id=9226

Hi
Did you get the same problem with the cross compiling toolchain in the android sdk?

@Isle sorry for late reply, thought I would get an email.

Haven’t tried that. Buildroot builds it’s own cross compiler toochain.

If I get to it, I will post what happened.

I have managed to boot from TTL as follows:

  • enter recovery mode (hold recovery and restart board by resetting)

  • download upgrade tool, and official Ubuntu image, and run:

    sudo ./Linux_Upgrade_Tool_v1.2/upgrade_tool uf Firefly-RK3288_Ubuntu14.04_201607222032.img

    This burns the image to the eMMC.

  • that image works. From inside of it, clear eMMC to ensure that it will not be used instead of the SD: sudo dd if=/dev/zero of=/dev/mmblk0

  • try again

However I can’t get HDMI / VGA output to my screen, only TTL access.

I also tried to insert the cable after boot, but it did not help.

hi
what did you get from cmd:
ls /sys/class/display/

That directory does not exist.

I will also try to get my hands on a better power supply, currently using USB.

Here’s the image for convenience: https://github.com/cirosantilli/media/blob/bc206d0c3aed5e85b4fd68346ce99db8b334c0ce/buildroot-firefly-sdcard-2016.05.img but it is just simply generated with the defconfig from buildroot.

hi
your img seems strange。
you can extra the official img to see the difference

Sorry, what do you mean?

I don’t know much about board bringup, so I don’t know what to compare. If I did, I’d have patched buildroot already :slight_smile:

I highly recommend you patch buildroot to work, would be great for your ecosystem :slight_smile:

HI
your image from github :buildroot-firefly-sdcard-2016.05.img
how did you made it ?

@isle buildroot… https://github.com/buildroot/buildroot :slight_smile:

git checkout 2016.05
make firefly_rk3288_defconfig
make

Someone had made a config for it: https://github.com/buildroot/buildroot/blob/master/configs/firefly_rk3288_defconfig but maybe it is broken.

Hi
Yes ,I have tried ,and got the same informations.
I think,the u-boot couldn’t load the boot.
But I am unfamiliar with the buildroot program.
I will try to fix when I am free.

cirosantilli Posted at 9/20/2016 15:01
@isle buildroot… https://github.com/buildroot/buildroot :slight_smile:

git checkout 2016.05

Hi
I have tested it again ,and the result is success.
the reason is load the wrong uboot ,we need clean up the spl and uboot from the EMMC FLASH
First of all flash a normal ubuntu firmware to the board ,then,boot the os.
clean the spl and uboot by

dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=4

then reboot ,
now,insert your sdcard and power up .

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
160 bytes read in 35 ms (3.9 KiB/s)
1:	firefly-rk3288
Retrieving file: /boot/uImage
5478152 bytes read in 1043 ms (5 MiB/s)
append: console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
Retrieving file: /boot/rk3288-firefly.dtb
35785 bytes read in 37 ms (944.3 KiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.4.0-rc5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5478088 Bytes = 5.2 MiB
   Load Address: 02000000
   Entry Point:  02000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Kernel Image ... OK
   Loading Device Tree to 1fff4000, end 1ffffbc8 ... OK

Starting kernel ...

when i clean up the /dev/mmcblk0, can i recover it and boot from emmc?

isle Posted at 9/28/2016 11:49
Hi
I have tested it again ,and the result is success.
the reason is load the wrong uboot ,we ne …

HI, how to fix it when i boot from the sd card

ttyS2 - failed to request DMA
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0x0
mmc2: MAN_BKOPS_EN bit is not set
mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
mmc2: new high speed MMC card at address 0001
mmcblk1: mmc2:0001 AGND3R 14.5 GiB
mmcblk1boot0: mmc2:0001 AGND3R partition 1 4.00 MiB
mmcblk1boot1: mmc2:0001 AGND3R partition 2 4.00 MiB
mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
mmc1: tried to reset card
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x800b00
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0xb00
mmcblk0: retrying using single block read
EXT3-fs (mmcblk0p1): error: couldn’t mount because of unsupported optional features (40)
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x800b00
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0xb00
mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
mmc1: tried to reset card
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x800b00
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0xb00
mmcblk0: retrying using single block read
EXT2-fs (mmcblk0p1): error: couldn’t mount because of unsupported optional features (40)
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x800b00
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0xb00
mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
mmc1: tried to reset card
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0x800b00
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0xb00
mmcblk0: retrying using single block read
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -84 transferring data, sector 795, nr 2, cmd response 0x900, card status 0x0
blk_update_request: I/O error, dev mmcblk0, sector 795
EXT4-fs (mmcblk0p1): unable to read superblock
List of all partitions:
0100 16384 ram0 (driver?)
b300 15159296 mmcblk0 driver: mmcblk
b301 524288 mmcblk0p1 00000000-01
b320 15267840 mmcblk1 driver: mmcblk
b360 4096 mmcblk1boot1 (driver?)
b340 4096 mmcblk1boot0 (driver?)
No filesystem could mount root, tried: ext3 ext2 ext4 vfat msdos
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.0.0-rc1 #1
Hardware name: Rockchip (Device Tree)
Backtrace:
[] (dump_backtrace) from [] (show_stack+0x18/0x1c)
r7:c06087fc r6:00008001 r5:c064b3b0 r4:00000000
[] (show_stack) from [] (dump_stack+0x78/0x94)
[] (dump_stack) from [] (panic+0x90/0x1e8)
r5:c064b3b0 r4:ed84201a
[] (panic) from [] (mount_block_root+0x24c/0x288)
r3:00000000 r2:80000000 r1:ee05fed0 r0:c05429ac
r7:c06087fc
[] (mount_block_root) from [] (mount_root+0x58/0x6c)
r10:00000000 r9:c064aec0 r8:c064aec0 r7:c06087d8 r6:c0608811 r5:c0542a10
r4:0b300001
[] (mount_root) from [] (prepare_namespace+0x164/0x1c4)
r5:c064aee4 r4:c06087fc
[] (prepare_namespace) from [] (kernel_init_freeable+0x194/0x1e0)
r6:c0615840 r5:000000c4 r4:00000008
[] (kernel_init_freeable) from [] (kernel_init+0x10/0xec)
r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c045edd0 r4:00000000
[] (kernel_init) from [] (ret_from_fork+0x14/0x34)
r5:c045edd0 r4:00000000
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.0.0-rc1 #1
Hardware name: Rockchip (Device Tree)
Backtrace:
[] (dump_backtrace) from [] (show_stack+0x18/0x1c)
r7:ee099fa4 r6:00000000 r5:00000001 r4:00000000
[] (show_stack) from [] (dump_stack+0x78/0x94)
[] (dump_stack) from [] (handle_IPI+0xd0/0x168)
r5:00000001 r4:c064b198
[] (handle_IPI) from [] (gic_handle_irq+0x5c/0x64)
r7:ee099fa4 r6:ee099f70 r5:c061cfc8 r4:f0002000
[] (gic_handle_irq) from [] (__irq_svc+0x40/0x54)
Exception stack(0xee099f70 to 0xee099fb8)
9f60: ffffffed 00000000 00000000 c001ee60
9f80: 00000000 00000000 c0617c48 c064b1c4 00000000 ffffffed 00000000 ee099fc4
9fa0: ee099fc8 ee099fb8 c000f570 c000f574 60000113 ffffffff
r7:ee099fa4 r6:ffffffff r5:60000113 r4:c000f574
[] (arch_cpu_idle) from [] (cpu_startup_entry+0xec/0x268)
[] (cpu_startup_entry) from [] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000001
[] (secondary_start_kernel) from [<00008704>] (0x8704)
r5:00000015 r4:2e06406a
CPU3: stopping
CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.0.0-rc1 #1
Hardware name: Rockchip (Device Tree)
Backtrace:
[] (dump_backtrace) from [] (show_stack+0x18/0x1c)
r7:ee09dfa4 r6:00000000 r5:00000003 r4:00000000
[] (show_stack) from [] (dump_stack+0x78/0x94)
[] (dump_stack) from [] (handle_IPI+0xd0/0x168)
r5:00000003 r4:c064b198
[] (handle_IPI) from [] (gic_handle_irq+0x5c/0x64)
r7:ee09dfa4 r6:ee09df70 r5:c061cfc8 r4:f0002000
[] (gic_handle_irq) from [] (__irq_svc+0x40/0x54)
Exception stack(0xee09df70 to 0xee09dfb8)
df60: ffffffed 00000000 00000000 c001ee60
df80: 00000000 00000000 c0617c48 c064b1c4 00000000 ffffffed 00000000 ee09dfc4
dfa0: ee09dfc8 ee09dfb8 c000f570 c000f574 60000113 ffffffff
r7:ee09dfa4 r6:ffffffff r5:60000113 r4:c000f574
[] (arch_cpu_idle) from [] (cpu_startup_entry+0xec/0x268)
[] (cpu_startup_entry) from [] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000003
[] (secondary_start_kernel) from [<00008704>] (0x8704)
r5:00000015 r4:2e06406a
CPU2: stopping
CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.0.0-rc1 #1
Hardware name: Rockchip (Device Tree)
Backtrace:
[] (dump_backtrace) from [] (show_stack+0x18/0x1c)
r7:ee09bfa4 r6:00000000 r5:00000002 r4:00000000
[] (show_stack) from [] (dump_stack+0x78/0x94)
[] (dump_stack) from [] (handle_IPI+0xd0/0x168)
r5:00000002 r4:c064b198
[] (handle_IPI) from [] (gic_handle_irq+0x5c/0x64)
r7:ee09bfa4 r6:ee09bf70 r5:c061cfc8 r4:f0002000
[] (gic_handle_irq) from [] (__irq_svc+0x40/0x54)
Exception stack(0xee09bf70 to 0xee09bfb8)
bf60: ffffffed 00000000 00000000 c001ee60
bf80: 00000000 00000000 c0617c48 c064b1c4 00000000 ffffffed 00000000 ee09bfc4
bfa0: ee09bfc8 ee09bfb8 c000f570 c000f574 60000113 ffffffff
r7:ee09bfa4 r6:ffffffff r5:60000113 r4:c000f574
[] (arch_cpu_idle) from [] (cpu_startup_entry+0xec/0x268)
[] (cpu_startup_entry) from [] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000002
[] (secondary_start_kernel) from [<00008704>] (0x8704)
r5:00000015 r4:2e06406a
drm_kms_helper: panic occurred, switching back to text console
—[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1)

Just what I needed—liking it now. The New N10-009 test dumps demo questions are shared for free—best of luck in your exams!

Die Prüfungsmaterialien zur SAP C_TS422_2504-German von Pass4Test sind kostengünstig. Wir bieten den Kandidaten die Simulationsfragen und Antworten von guter Qualität mit niedrigem Preis. Wir hoffen herzlich, dass Sie die Prüfung bestehen können. Außerdem bieten wir Ihen bequemen Online-Service und alle Ihren Fragen zur SAP C_TS422_2504-German Zertifizierungsprüfung lösen.

It was a truly rewarding and enlightening piece of writing. I’m offering the L4M7 reliable test forum resources for free—good luck!

Your article was a pleasant surprise, thank you for sharing it. Wishing you success! Here are the free CIS-SM frenquent update test materials.

I am so grateful for the insights in this article, thank you! Free Reliable exam CRT-450 pass4sure exam papers to help you prepare. Best of luck to all!