Firefly Open Source Community

Title: Buildroot SD card Firefly image boot fails with: "failed to find part:boot& [Print This Page]

Author: cirosantilli    Time: 9/13/2016 01:36
Title: Buildroot SD card Firefly image boot fails with: "failed to find part:boot&
Last edited by cirosantilli In 9/18/2016 17:49 Editor

Tested on Buildroot 2016.05 and master @ a26aa9686ad457d208df3b85a39c9befa04caaa3

Here's the image for convenience: https://github.com/cirosantilli/ ... -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

Author: isle    Time: 9/14/2016 14:24
Hi
Did you get the same problem with the cross compiling toolchain in the android sdk?
Author: cirosantilli    Time: 9/17/2016 21:56
@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.
Author: cirosantilli    Time: 9/17/2016 21:59
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.
Author: isle    Time: 9/18/2016 10:26
hi  
   what did you get from cmd:
     ls   /sys/class/display/
Author: cirosantilli    Time: 9/18/2016 17:48
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/ ... -sdcard-2016.05.img but it is just simply generated with the defconfig from buildroot.
Author: isle    Time: 9/19/2016 10:45
hi
  your img seems strange¡£
you can extra the official img  to see the difference
Author: cirosantilli    Time: 9/19/2016 21:34
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 :-)

I highly recommend you patch buildroot to work, would be great for your ecosystem :-)
Author: isle    Time: 9/20/2016 09:42
HI
your image from github :buildroot-firefly-sdcard-2016.05.img
how did you made it ?

Author: cirosantilli    Time: 9/20/2016 15:01
@isle buildroot... https://github.com/buildroot/buildroot :-)

git checkout 2016.05
make firefly_rk3288_defconfig
make

Someone had made a config for it: https://github.com/buildroot/bui ... ly_rk3288_defconfig but maybe it is broken.
Author: isle    Time: 9/23/2016 16:10
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.
Author: isle    Time: 9/28/2016 11:49
cirosantilli Posted at 9/20/2016 15:01
@isle buildroot... https://github.com/buildroot/buildroot :-)

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
  1. dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=4
Copy the code

then reboot ,
now,insert your sdcard and power up .
  1. switch to partitions #0, OK
  2. mmc0 is current device
  3. Scanning mmc 0:1...
  4. Found /boot/extlinux/extlinux.conf
  5. Retrieving file: /boot/extlinux/extlinux.conf
  6. 160 bytes read in 35 ms (3.9 KiB/s)
  7. 1:        firefly-rk3288
  8. Retrieving file: /boot/uImage
  9. 5478152 bytes read in 1043 ms (5 MiB/s)
  10. append: console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
  11. Retrieving file: /boot/rk3288-firefly.dtb
  12. 35785 bytes read in 37 ms (944.3 KiB/s)
  13. ## Booting kernel from Legacy Image at 02000000 ...
  14.    Image Name:   Linux-4.4.0-rc5
  15.    Image Type:   ARM Linux Kernel Image (uncompressed)
  16.    Data Size:    5478088 Bytes = 5.2 MiB
  17.    Load Address: 02000000
  18.    Entry Point:  02000000
  19.    Verifying Checksum ... OK
  20. ## Flattened Device Tree blob at 01f00000
  21.    Booting using the fdt blob at 0x1f00000
  22.    Loading Kernel Image ... OK
  23.    Loading Device Tree to 1fff4000, end 1ffffbc8 ... OK

  24. Starting kernel ...

Copy the code

Author: towniy    Time: 5/27/2017 15:47
when i clean up the /dev/mmcblk0, can i recover it and boot from emmc?
Author: 18825098397    Time: 5/9/2018 16:31
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:
[<c0011ce0>] (dump_backtrace) from [<c0011f04>] (show_stack+0x18/0x1c)
r7:c06087fc r6:00008001 r5:c064b3b0 r4:00000000
[<c0011eec>] (show_stack) from [<c0460894>] (dump_stack+0x78/0x94)
[<c046081c>] (dump_stack) from [<c045faf4>] (panic+0x90/0x1e8)
r5:c064b3b0 r4:ed84201a
[<c045fa68>] (panic) from [<c05db31c>] (mount_block_root+0x24c/0x288)
r3:00000000 r2:80000000 r1:ee05fed0 r0:c05429ac
r7:c06087fc
[<c05db0d0>] (mount_block_root) from [<c05db498>] (mount_root+0x58/0x6c)
r10:00000000 r9:c064aec0 r8:c064aec0 r7:c06087d8 r6:c0608811 r5:c0542a10
r4:0b300001
[<c05db440>] (mount_root) from [<c05db610>] (prepare_namespace+0x164/0x1c4)
r5:c064aee4 r4:c06087fc
[<c05db4ac>] (prepare_namespace) from [<c05dae9c>] (kernel_init_freeable+0x194/0x1e0)
r6:c0615840 r5:000000c4 r4:00000008
[<c05dad08>] (kernel_init_freeable) from [<c045ede0>] (kernel_init+0x10/0xec)
r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c045edd0 r4:00000000
[<c045edd0>] (kernel_init) from [<c000ea20>] (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:
[<c0011ce0>] (dump_backtrace) from [<c0011f04>] (show_stack+0x18/0x1c)
r7:ee099fa4 r6:00000000 r5:00000001 r4:00000000
[<c0011eec>] (show_stack) from [<c0460894>] (dump_stack+0x78/0x94)
[<c046081c>] (dump_stack) from [<c0013e90>] (handle_IPI+0xd0/0x168)
r5:00000001 r4:c064b198
[<c0013dc0>] (handle_IPI) from [<c000866c>] (gic_handle_irq+0x5c/0x64)
r7:ee099fa4 r6:ee099f70 r5:c061cfc8 r4:f0002000
[<c0008610>] (gic_handle_irq) from [<c00129c0>] (__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
[<c000f540>] (arch_cpu_idle) from [<c0050480>] (cpu_startup_entry+0xec/0x268)
[<c0050394>] (cpu_startup_entry) from [<c0013b8c>] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000001
[<c0013a68>] (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:
[<c0011ce0>] (dump_backtrace) from [<c0011f04>] (show_stack+0x18/0x1c)
r7:ee09dfa4 r6:00000000 r5:00000003 r4:00000000
[<c0011eec>] (show_stack) from [<c0460894>] (dump_stack+0x78/0x94)
[<c046081c>] (dump_stack) from [<c0013e90>] (handle_IPI+0xd0/0x168)
r5:00000003 r4:c064b198
[<c0013dc0>] (handle_IPI) from [<c000866c>] (gic_handle_irq+0x5c/0x64)
r7:ee09dfa4 r6:ee09df70 r5:c061cfc8 r4:f0002000
[<c0008610>] (gic_handle_irq) from [<c00129c0>] (__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
[<c000f540>] (arch_cpu_idle) from [<c0050480>] (cpu_startup_entry+0xec/0x268)
[<c0050394>] (cpu_startup_entry) from [<c0013b8c>] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000003
[<c0013a68>] (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:
[<c0011ce0>] (dump_backtrace) from [<c0011f04>] (show_stack+0x18/0x1c)
r7:ee09bfa4 r6:00000000 r5:00000002 r4:00000000
[<c0011eec>] (show_stack) from [<c0460894>] (dump_stack+0x78/0x94)
[<c046081c>] (dump_stack) from [<c0013e90>] (handle_IPI+0xd0/0x168)
r5:00000002 r4:c064b198
[<c0013dc0>] (handle_IPI) from [<c000866c>] (gic_handle_irq+0x5c/0x64)
r7:ee09bfa4 r6:ee09bf70 r5:c061cfc8 r4:f0002000
[<c0008610>] (gic_handle_irq) from [<c00129c0>] (__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
[<c000f540>] (arch_cpu_idle) from [<c0050480>] (cpu_startup_entry+0xec/0x268)
[<c0050394>] (cpu_startup_entry) from [<c0013b8c>] (secondary_start_kernel+0x124/0x148)
r7:c064b1c4 r4:00000002
[<c0013a68>] (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)





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1