Build with poplar source, but not work

i’m insterested in poplar board.
i wanted use linux on poplar board.

i followed below guide.
https://github.com/Linaro/poplar-tools/blob/latest/build_instructions.md

but boot log message is ‘cant find rootfs’

U-Boot 2017.09-rc4-gd9afcaf-dirty (Sep 17 2017 - 22:21:50 +0900)poplar

Model: HiSilicon Poplar Development Board
BOARD: Hisilicon HI3798cv200 Poplar
DRAM: 1023.5 MiB
MMC: Hisilicon DWMMC: 0
*** Warning - bad CRC, using default environment

In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Net: configured
No such device: mdio0
No such device: mdio0
No such device: mdio1
gmac1
Warning: gmac1 (eth0) using random MAC address - d6:34:26:c8:59:ac

Hit any key to stop autoboot: 0
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 2 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
scanning usb for ethernet devices… 0 Ethernet Device(s) found

Device 0: device type unknown
… is now current device
** Bad device usb 0 **
** Bad device usb 0 **
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
158 bytes read in 4 ms (38.1 KiB/s)
1: Buildroot
Retrieving file: /extlinux/…/Image
reading /extlinux/…/Image
16548352 bytes read in 1458 ms (10.8 MiB/s)
append: loglevel=4 mem=1G root=/dev/mmcblk0p3 rootfstype=ext4 rootwait rw earlycon
Retrieving file: /extlinux/…/hi3798cv200-poplar.dtb
reading /extlinux/…/hi3798cv200-poplar.dtb
9241 bytes read in 7 ms (1.3 MiB/s)

Flattened Device Tree blob at 32200000

Booting using the fdt blob at 0x32200000
device_remove: Device ‘ehci@9890000’ failed to remove, but children are gone
Loading Device Tree to 000000003df3d000, end 000000003df42418 … OK

Starting kernel …

[ 0.134428] OF: amba_device_add() failed (-19) for /soc@f0000000/spi@8b1a000
[ 0.150654] dmi: Firmware registration failed.
[ 0.303865] EXT4-fs (mmcblk0p3): no journal found
[ 0.351541] EXT4-fs (mmcblk0p3): no journal found
[ 0.391392] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
[ 0.399827] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.13.0-rc3-g99c9e3a-dirty #1
[ 0.407389] Hardware name: HiSilicon Poplar Development Board (DT)
[ 0.413563] Call trace:
[ 0.416008] [] dump_backtrace+0x0/0x230
[ 0.421402] [] show_stack+0x14/0x20
[ 0.426449] [] dump_stack+0x98/0xb8
[ 0.431495] [] panic+0x118/0x28c
[ 0.436282] [] mount_block_root+0x1fc/0x24c
[ 0.442021] [] mount_root+0x11c/0x134
[ 0.447240] [] prepare_namespace+0x138/0x180
[ 0.453067] [] kernel_init_freeable+0x200/0x224
[ 0.459156] [] kernel_init+0x10/0x100
[ 0.464375] [] ret_from_fork+0x10/0x50
[ 0.469683] SMP: stopping secondary CPUs
[ 0.473600] Kernel Offset: disabled
[ 0.477080] CPU features: 0x002004
[ 0.480473] Memory Limit: 1024 MB
[ 0.483782] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)

how can i fix this problem?

I’m not entirely sure what’s going on here but could you try again using my skunkworks installer instead:

The main difference with my installer, compared to the offiicial one, is that the actual installer itself is simply a shell script that runs under Debian (most of the work my “installer” does is generate a Debian-on-a-stick image… once we have that the installer itself is pretty trivial). Anyhow given you have all the power of Debian available you can also use the “installer” as a recovery tool to help figure out what might be wrong in eMMC.

ok thanks.
i will use it.

very appreciate it.

i tried usb stick image . but wont boot… :frowning:

my poplar boot log attached…

Bootrom start
Boot Media: eMMC

Entry usb bootstrap

Usb disk(1):
Decrypt auxiliary code …OK

lsadc voltage min: 000000FE, max: 000000FF, aver: 000000FE, index: 00000000

Entry boot auxiliary code

Auxiliary code - v1.00
DDR code - V1.1.2 20160205
Build: Mar 24 2016 - 17:09:44

Reg Version: v134
Reg Time: 2016/03/18 09:44:55
Reg Name: hi3798cv2dmb_hi3798cv200_ddr3_2gbyte_8bitx4_4layers.reg

Boot auxiliary code success
Bootrom success

LOADER: Switched to aarch64 mode
LOADER: Entering ARM TRUSTED FIRMWARE
LOADER: CPU0 executes at 0x0000e000

INFO: BL1: 0x16000 - 0x1c000 [size = 24576]
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.4(debug):bdbc6a6
NOTICE: BL1: Built : 19:33:42, Sep 20 2017
INFO: BL1: RAM 0x16000 - 0x1c000
INFO: BL1: cortex_a53: errata workaround for 835769 was applied
INFO: BL1: cortex_a53: errata workaround for 843419 was applied
INFO: BL1: cortex_a53: errata workaround for 855873 was applied
INFO: BL1: Loading BL2
INFO: Loading image id=1 at address 0x1e000
INFO: Image id=1 loaded at address 0x1e000, size = 0x4008
NOTICE: BL1: Booting BL2
INFO: Entry point address = 0x1e000
INFO: SPSR = 0x3c5
NOTICE: BL2: v1.4(debug):bdbc6a6
NOTICE: BL2: Built : 19:33:45, Sep 20 2017
INFO: BL2: Loading BL31
INFO: Loading image id=3 at address 0x2a000
INFO: Image id=3 loaded at address 0x2a000, size = 0x6020
INFO: BL2: Loading BL33
INFO: Loading image id=5 at address 0x37000000
INFO: Image id=5 loaded at address 0x37000000, size = 0x5c0b5
NOTICE: BL1: Booting BL31
INFO: Entry point address = 0x2a000
INFO: SPSR = 0x3cd
INFO: Boot BL33 from 0x37000000 for 377013 Bytes
NOTICE: BL31: v1.4(debug):bdbc6a6
NOTICE: BL31: Built : 19:33:49, Sep 20 2017
INFO: ARM GICv2 driver initialized
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: errata workaround for 835769 was applied
INFO: BL31: cortex_a53: errata workaround for 843419 was applied
INFO: BL31: cortex_a53: errata workaround for 855873 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x37000000
INFO: SPSR = 0x3c9

U-Boot 2017.09-rc4-g46c31cd (Sep 20 2017 - 19:32:55 +0900)poplar

Model: HiSilicon Poplar Development Board
BOARD: Hisilicon HI3798cv200 Poplar
DRAM: 1023.5 MiB
MMC: Hisilicon DWMMC: 0
*** Warning - bad CRC, using default environment

In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Net: configured
No such device: mdio0
No such device: mdio0
No such device: mdio1
gmac1
Warning: gmac1 (eth0) using random MAC address - f2:42:9f:a5:0a:72

Hit any key to stop autoboot: 0
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 3 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found
scanning usb for ethernet devices… 0 Ethernet Device(s) found

Device 0: Vendor: SanDisk Rev: PMAP Prod: SanDisk Ultra
Type: Removable Hard Disk
Capacity: 15120.0 MB = 14.7 GB (30965760 x 512)
… is now current device
Scanning usb 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
136 bytes read in 22 ms (5.9 KiB/s)
1: Debian
Retrieving file: /extlinux/…/Image
reading /extlinux/…/Image
16548352 bytes read in 617 ms (25.6 MiB/s)
append: loglevel=4 root=/dev/sda2 rw rootwait
Retrieving file: /extlinux/…/hi3798cv200-poplar.dtb
reading /extlinux/…/hi3798cv200-poplar.dtb
10233 bytes read in 38 ms (262.7 KiB/s)

Flattened Device Tree blob at 32200000

Booting using the fdt blob at 0x32200000
device_remove: Device ‘ehci@9890000’ failed to remove, but children are gone
Loading Device Tree to 000000003df3d000, end 000000003df427f8 … OK

Starting kernel …

[ 0.134405] OF: amba_device_add() failed (-19) for /soc@f0000000/spi@8b1a000
[ 0.151136] dmi: Firmware registration failed.

thanks…

That’s odd… the kernel has come up and then stopped running without issuing any message. It looks like it didn’t get as far as the installed kernel.

Can you put the stick into a normal driver and modity extlinux.conf (its in the BOOT partition) to remove “loglevel=4” from the kernel command line. This will increase the quantity of messages the kernel prints as it boots… it may offer some clues.

1 Like

Bootrom start
Boot Media: eMMC
Decrypt auxiliary code …OK

lsadc voltage min: 000000FE, max: 000000FF, aver: 000000FE, index: 00000 000

Entry boot auxiliary code

Auxiliary code - v1.00
DDR code - V1.1.2 20160205
Build: Mar 24 2016 - 17:09:44

Reg Version: v134
Reg Time: 2016/03/18 09:44:55
Reg Name: hi3798cv2dmb_hi3798cv200_ddr3_2gbyte_8bitx4_4layers.reg

Boot auxiliary code success
Bootrom success

LOADER: Switched to aarch64 mode
LOADER: Entering ARM TRUSTED FIRMWARE
LOADER: CPU0 executes at 0x0000e000

INFO: BL1: 0x16000 - 0x1c000 [size = 24576]
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.4(debug):bdbc6a6
NOTICE: BL1: Built : 22:27:35, Sep 17 2017
INFO: BL1: RAM 0x16000 - 0x1c000
INFO: BL1: cortex_a53: errata workaround for 835769 was applied
INFO: BL1: cortex_a53: errata workaround for 843419 was applied
INFO: BL1: cortex_a53: errata workaround for 855873 was applied
INFO: BL1: Loading BL2
INFO: Loading image id=1 at address 0x1e000
INFO: Image id=1 loaded at address 0x1e000, size = 0x4008
NOTICE: BL1: Booting BL2
INFO: Entry point address = 0x1e000
INFO: SPSR = 0x3c5
NOTICE: BL2: v1.4(debug):bdbc6a6
NOTICE: BL2: Built : 22:27:38, Sep 17 2017
INFO: BL2: Loading BL31
INFO: Loading image id=3 at address 0x2a000
INFO: Image id=3 loaded at address 0x2a000, size = 0x6020
INFO: BL2: Loading BL33
INFO: Loading image id=5 at address 0x37000000
INFO: Image id=5 loaded at address 0x37000000, size = 0x5c0bd
NOTICE: BL1: Booting BL31
INFO: Entry point address = 0x2a000
INFO: SPSR = 0x3cd
INFO: Boot BL33 from 0x37000000 for 377021 Bytes
NOTICE: BL31: v1.4(debug):bdbc6a6
NOTICE: BL31: Built : 22:27:42, Sep 17 2017
INFO: ARM GICv2 driver initialized
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: errata workaround for 835769 was applied
INFO: BL31: cortex_a53: errata workaround for 843419 was applied
INFO: BL31: cortex_a53: errata workaround for 855873 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x37000000
INFO: SPSR = 0x3c9

U-Boot 2017.09-rc4-gd9afcaf-dirty (Sep 17 2017 - 22:21:50 +0900)poplar

Model: HiSilicon Poplar Development Board
BOARD: Hisilicon HI3798cv200 Poplar
DRAM: 1023.5 MiB
MMC: Hisilicon DWMMC: 0
*** Warning - bad CRC, using default environment

In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Net: configured
No such device: mdio0
No such device: mdio0
No such device: mdio1
gmac1
Warning: gmac1 (eth0) using random MAC address - 4a:6a:1a:2b:55:13

Hit any key to stop autoboot: 0
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 3 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found
scanning usb for ethernet devices… 0 Ethernet Device(s) found

Device 0: Vendor: SanDisk Rev: PMAP Prod: SanDisk Ultra
Type: Removable Hard Disk
Capacity: 15120.0 MB = 14.7 GB (30965760 x 512)
… is now current device
Scanning usb 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
125 bytes read in 22 ms (4.9 KiB/s)
1: Debian
Retrieving file: /extlinux/…/Image
reading /extlinux/…/Image
16548352 bytes read in 617 ms (25.6 MiB/s)
append: root=/dev/sda2 rw rootwait
Retrieving file: /extlinux/…/hi3798cv200-poplar.dtb
reading /extlinux/…/hi3798cv200-poplar.dtb
10233 bytes read in 38 ms (262.7 KiB/s)

Flattened Device Tree blob at 32200000

Booting using the fdt blob at 0x32200000
device_remove: Device ‘ehci@9890000’ failed to remove, but children are gone
Loading Device Tree to 000000003df3d000, end 000000003df427f8 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-rc3-g6e39205 (root@ubuntu) (gcc vers ion 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP PREEMPT Wed Sep 20 1 8:50:33 KST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: HiSilicon Poplar Development Board
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x000000003f000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000 3fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x3efe5c80-0x3efe777f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000080000-0x000000003fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000080000-0x000000003fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000080000-0x000000003f ffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] percpu: Embedded 26 pages/cpu @ffff80003ef7a000 s67352 r8 192 d30952 u106496
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. T otal pages: 257922
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: root=/dev/sda2 rw rootwait
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 998124K/1048064K available (9468K kernel code, 11 84K rwdata, 4292K rodata, 1152K init, 413K bss, 33556K reserved, 16384K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000 ( 129022 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff0000089c0000 ( 9472 KB)
[ 0.000000] .rodata : 0xffff0000089c0000 - 0xffff000008e00000 ( 4352 KB)
[ 0.000000] .init : 0xffff000008e00000 - 0xffff000008f20000 ( 1152 KB)
[ 0.000000] .data : 0xffff000008f20000 - 0xffff000009048200 ( 1185 KB)
[ 0.000000] .bss : 0xffff000009048200 - 0xffff0000090af9e0 ( 414 KB)
[ 0.000000] fixed : 0xffff7dfffe7fd000 - 0xffff7dfffec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7e0000000000 - 0xffff800000000000 ( 2048 GB maximum)
[ 0.000000] 0xffff7e0000002000 - 0xffff7e0001000000 ( 15 MB actual)
[ 0.000000] memory : 0xffff800000080000 - 0xffff800040000000 ( 1023 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes= 1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_id s=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max _cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps eve ry 4398046511097ns
[ 0.000146] Console: colour dummy device 80x25
[ 0.000611] console [tty0] enabled
[ 0.000648] Calibrating delay loop (skipped), value calculated using timer frequency… 48.00 BogoMIPS (lpj=96000)
[ 0.000669] pid_max: default: 32768 minimum: 301
[ 0.000725] Security Framework initialized
[ 0.001117] Dentry cache hash table entries: 131072 (order: 8, 104857 6 bytes)
[ 0.001319] Inode-cache hash table entries: 65536 (order: 7, 524288 b ytes)
[ 0.001342] Mount-cache hash table entries: 2048 (order: 2, 16384 byt es)
[ 0.001362] Mountpoint-cache hash table entries: 2048 (order: 2, 1638 4 bytes)
[ 0.016027] ASID allocator initialised with 65536 entries
[ 0.024019] Hierarchical SRCU implementation.
[ 0.032238] EFI services will not be available.
[ 0.040036] smp: Bringing up secondary CPUs …
[ 0.068117] Detected VIPT I-cache on CPU1
[ 0.068151] CPU1: Booted secondary processor [410fd034]
[ 0.096136] Detected VIPT I-cache on CPU2
[ 0.096152] CPU2: Booted secondary processor [410fd034]
[ 0.124165] Detected VIPT I-cache on CPU3
[ 0.124179] CPU3: Booted secondary processor [410fd034]
[ 0.124209] smp: Brought up 1 node, 4 CPUs
[ 0.124271] SMP: Total of 4 processors activated.
[ 0.124283] CPU features: detected feature: 32-bit EL0 Support
[ 0.124369] CPU: All CPU(s) started at EL2
[ 0.124388] alternatives: patching kernel code
[ 0.124990] devtmpfs: initialized
[ 0.126283] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffff ffff, max_idle_ns: 7645041785100000 ns
[ 0.126334] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.126701] pinctrl core: initialized pinctrl subsystem
[ 0.127216] DMI not present or invalid.
[ 0.127383] random: get_random_u32 called from bucket_table_alloc+0xf 8/0x280 with crng_init=0
[ 0.127447] NET: Registered protocol family 16
[ 0.128128] cpuidle: using governor menu
[ 0.128306] vdso: 2 pages (1 code @ ffff0000089c6000, 1 data @ ffff00 0008f25000)
[ 0.128333] hw-breakpoint: found 6 breakpoint and 4 watchpoint regist ers.
[ 0.128366] random: fast init done
[ 0.132657] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.132894] Serial: AMBA PL011 UART driver
[ 0.133873] f8b00000.serial: ttyAMA0 at MMIO 0xf8b00000 (irq = 5, bas e_baud = 0) is a PL011 rev2
[ 0.653325] console [ttyAMA0] enabled
[ 0.657284] f8b02000.serial: ttyAMA2 at MMIO 0xf8b02000 (irq = 6, bas e_baud = 0) is a PL011 rev2
[ 0.666460] OF: amba_device_add() failed (-19) for /soc@f0000000/spi@ 8b1a000
[ 0.681426] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pa ges
[ 0.688665] ACPI: Interpreter disabled.
[ 0.692804] vgaarb: loaded
[ 0.695679] SCSI subsystem initialized
[ 0.700490] usbcore: registered new interface driver usbfs
[ 0.706032] usbcore: registered new interface driver hub
[ 0.711405] usbcore: registered new device driver usb
[ 0.716767] media: Linux media interface: v0.10
[ 0.721392] Linux video capture interface: v2.00
[ 0.726063] pps_core: LinuxPPS API ver. 1 registered
[ 0.731030] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodol fo Giometti giometti@linux.it
[ 0.740181] PTP clock support registered
[ 0.744172] EDAC MC: Ver: 3.0.0
[ 0.747472] dmi: Firmware registration failed.
[ 0.752019] Advanced Linux Sound Architecture Driver Initialized.
[ 0.758538] clocksource: Switched to clocksource arch_sys_counter
[ 0.764736] VFS: Disk quotas dquot_6.6.0
[ 0.768694] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 b ytes)
[ 0.775700] pnp: PnP ACPI: disabled
[ 0.782636] NET: Registered protocol family 2
[ 0.787296] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.794409] TCP bind hash table entries: 8192 (order: 5, 131072 bytes )
[ 0.801027] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.807462] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.813402] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[ 0.819853] NET: Registered protocol family 1
[ 0.824420] RPC: Registered named UNIX socket transport module.
[ 0.830346] RPC: Registered udp transport module.
[ 0.835073] RPC: Registered tcp transport module.
[ 0.839779] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.846622] kvm [1]: 8-bit VMID
[ 0.849760] kvm [1]: IDMAP page: 309ab000
[ 0.853772] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[ 0.859912] kvm [1]: Hyp mode initialized successfully
[ 0.865077] kvm [1]: virtual timer IRQ3
[ 0.870139] audit: initializing netlink subsys (disabled)
[ 0.875628] audit: type=2000 audit(0.873:1): state=initialized audit_ enabled=0 res=1
[ 0.875769] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[ 0.879649] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.880007] NFS: Registering the id_resolver key type
[ 0.880021] Key type id_resolver registered
[ 0.880023] Key type id_legacy registered
[ 0.880029] nfs4filelayout_init: NFSv4 File Layout Driver Registering …
[ 0.880133] 9p: Installing v9fs 9p2000 file system support
[ 0.881441] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.881445] io scheduler noop registered
[ 0.881556] io scheduler cfq registered (default)
[ 0.881558] io scheduler mq-deadline registered
[ 0.881560] io scheduler kyber registered
[ 0.899645] pl061_gpio f8b21000.gpio: PL061 GPIO chip @0x00000000f8b2 1000 registered
[ 0.899853] pl061_gpio f8b22000.gpio: PL061 GPIO chip @0x00000000f8b2 2000 registered
[ 0.900045] pl061_gpio f8b23000.gpio: PL061 GPIO chip @0x00000000f8b2 3000 registered
[ 0.900229] pl061_gpio f8b24000.gpio: PL061 GPIO chip @0x00000000f8b2 4000 registered
[ 0.900412] pl061_gpio f8004000.gpio: PL061 GPIO chip @0x00000000f800 4000 registered
[ 0.900598] pl061_gpio f8b26000.gpio: PL061 GPIO chip @0x00000000f8b2 6000 registered
[ 0.900791] pl061_gpio f8b2a000.gpio: PL061 GPIO chip @0x00000000f8b2 a000 registered
[ 0.904746] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.905619] SuperH (H)SCI(F) driver initialized
[ 0.905748] msm_serial: driver initialized
[ 0.906025] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.909417] loop: module loaded
[ 0.909784] hisi_sas: driver version v1.6
[ 0.911081] libphy: Fixed MDIO Bus: probed
[ 0.911367] tun: Universal TUN/TAP device driver, 1.6
[ 0.911955] libphy: hix5hd2_mii_bus: probed
[ 0.912210] (unnamed net_device) (uninitialized): using random MAC ad dress 9a:81:90:7a:9c:77
[ 0.916517] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.916519] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.916553] igb: Intel(R) Gigabit Ethernet Network Driver - version 5 .4.0-k
[ 0.916555] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.916577] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 0.916578] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.916698] sky2: driver version 1.30
[ 0.916924] VFIO - User Level meta-driver version: 0.3
[ 0.917483] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Drive r
[ 0.917486] ehci-pci: EHCI PCI platform driver
[ 0.917507] ehci-platform: EHCI generic platform driver
[ 0.917633] ehci-platform f9890000.ehci: EHCI Host Controller
[ 0.917652] ehci-platform f9890000.ehci: new USB bus registered, assi gned bus number 1
[ 0.917882] ehci-platform f9890000.ehci: irq 20, io mem 0xf9890000
[ 0.934722] ehci-platform f9890000.ehci: USB 2.0 started, EHCI 1.00
[ 0.935116] hub 1-0:1.0: USB hub found
[ 0.935130] hub 1-0:1.0: 1 port detected
[ 0.935297] ehci-orion: EHCI orion driver
[ 0.935388] ehci-exynos: EHCI EXYNOS driver
[ 0.935427] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[ 0.935459] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 0.935470] ohci-pci: OHCI PCI platform driver
[ 0.935518] ohci-platform: OHCI generic platform driver
[ 0.935626] ohci-platform f9880000.ohci: Generic Platform OHCI contro ller
[ 0.935638] ohci-platform f9880000.ohci: new USB bus registered, assi gned bus number 2
[ 0.935781] ohci-platform f9880000.ohci: irq 21, io mem 0xf9880000
[ 0.994891] hub 2-0:1.0: USB hub found
[ 0.994905] hub 2-0:1.0: 1 port detected
[ 0.995051] ohci-exynos: OHCI EXYNOS driver
[ 0.995322] usbcore: registered new interface driver usb-storage
[ 0.996146] i2c /dev entries driver
[ 0.997194] lirc_dev: IR Remote Control driver registered, major 240
[ 0.997196] IR NEC protocol handler initialized
[ 0.997198] IR RC5(x/sz) protocol handler initialized
[ 0.997199] IR RC6 protocol handler initialized
[ 0.997201] IR JVC protocol handler initialized
[ 0.997202] IR Sony protocol handler initialized
[ 0.997204] IR SANYO protocol handler initialized
[ 0.997205] IR Sharp protocol handler initialized
[ 0.997206] IR MCE Keyboard/mouse protocol handler initialized
[ 0.997208] IR LIRC bridge handler initialized
[ 0.997209] IR XMP protocol handler initialized
[ 0.997258] hix5hd2-ir f8001000.ir: no power-reg
[ 0.997350] Registered IR keymap rc-empty
[ 0.997395] rc rc0: hix5hd2-ir as /devices/virtual/rc/rc0
[ 0.997465] input: hix5hd2-ir as /devices/virtual/rc/rc0/input0
[ 0.997697] input: MCE IR Keyboard/Mouse (hix5hd2-ir) as /devices/vir tual/input/input1
[ 0.997816] rc rc0: lirc_dev: driver ir-lirc-codec (hix5hd2-ir) regis tered at minor = 0
[ 0.998591] sdhci: Secure Digital Host Controller Interface driver
[ 0.998593] sdhci: Copyright(c) Pierre Ossman
[ 0.998694] Synopsys Designware Multimedia Card Interface Driver
[ 0.998782] dw_mmc f9830000.mmc: fifo-depth property not found, using value of FIFOTH register as default
[ 0.998863] dw_mmc f9830000.mmc: IDMAC supports 32-bit address mode.
[ 0.998987] dw_mmc f9830000.mmc: Using internal DMA controller.
[ 0.998993] dw_mmc f9830000.mmc: Version ID is 270a
[ 0.999019] dw_mmc f9830000.mmc: DW MMC controller at irq 10,32 bit h ost data width,256 deep fifo
[ 1.018544] mmc_host mmc0: Bus speed (slot 0) = 25000000Hz (slot req 400000Hz, actual 390625HZ div = 32)
[ 1.038895] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.041822] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.042266] usbcore: registered new interface driver usbhid
[ 1.042267] usbhid: USB HID core driver
[ 1.043380] NET: Registered protocol family 17
[ 1.043431] 9pnet: Installing 9P2000 support
[ 1.043468] Key type dns_resolver registered
[ 1.043823] registered taskstats version 1
[ 1.045039] hctosys: unable to open rtc device (rtc0)
[ 1.045122] ALSA device list:
[ 1.045123] No soundcards found.
[ 1.084564] mmc_host mmc0: Bus speed (slot 0) = 25000000Hz (slot req 25000000Hz, actual 25000000HZ div = 0)
[ 1.084630] mmc0: new MMC card at address 0001
[ 1.084868] mmcblk0: mmc0:0001 8WPD3R 7.28 GiB
[ 1.084941] mmcblk0boot0: mmc0:0001 8WPD3R partition 1 4.00 MiB
[ 1.085011] mmcblk0boot1: mmc0:0001 8WPD3R partition 2 4.00 MiB
[ 1.086825] mmcblk0: p1 p2 p3
[ 1.258548] usb 1-1: new high-speed USB device number 2 using ehci-pl atform
[ 1.408331] hub 1-1:1.0: USB hub found
[ 1.408649] hub 1-1:1.0: 4 ports detected
[ 1.468221] uart-pl011 f8b00000.serial: no DMA platform data
[ 1.473947] Waiting for root device /dev/sda2…
[ 1.694543] usb 1-1.1: new high-speed USB device number 3 using ehci- platform
[ 1.856279] usb 1-1.1: rejected 1 configuration due to insufficient a vailable bus power
[ 1.864294] usb 1-1.1: no configuration chosen from 1 choice

log is very long. I split it.

Very Nice Thanks for danielt.

[ 1.864294] usb 1-1.1: no configuration chosen from 1 choice

and no more progress.

Hey.

I recognise this… its a mistake in the way the boards internal USB is configured. It can be worked around three ways:

  1. Mod the board (this requires the right equipment and a reasonably degree of skill with a soldering iron).
  2. Use a different USB stick (on that only requires 100mA)
  3. Apply a software fix.

I do have a software fix somewhere but I’m crazy busy today and need to dig it out… I’ll try to get it to you by Monday!

So… the software workaround is here:

This code is fished out from an old e-mail and brought up to date. I’m afraid I have’t tested it (I’m travelling and won’t be near my poplar for a little while yet) but it was pretty simply so I’d expect it to work for you.

Can you apply the patch to the kernel sources and regenerate the usbstick? … and let me know what happens?

thanks danielt, I am trying now… :slight_smile:

fixed!!! fixed!!!

Bootrom start
Boot Media: eMMC
Decrypt auxiliary code …OK

lsadc voltage min: 000000FE, max: 000000FF, aver: 000000FE, index: 00000000

Entry boot auxiliary code

Auxiliary code - v1.00
DDR code - V1.1.2 20160205
Build: Mar 24 2016 - 17:09:44

Reg Version: v134
Reg Time: 2016/03/18 09:44:55
Reg Name: hi3798cv2dmb_hi3798cv200_ddr3_2gbyte_8bitx4_4layers.reg

Boot auxiliary code success

Bootrom start
Boot Media: eMMC
Decrypt auxiliary code …OK

lsadc voltage min: 000000FE, max: 000000FF, aver: 000000FE, index: 00000000

Entry boot auxiliary code

Auxiliary code - v1.00
DDR code - V1.1.2 20160205
Build: Mar 24 2016 - 17:09:44

Reg Version: v134
Reg Time: 2016/03/18 09:44:55
Reg Name: hi3798cv2dmb_hi3798cv200_ddr3_2gbyte_8bitx4_4layers.reg

Boot auxiliary code success
Bootrom success

LOADER: Switched to aarch64 mode
LOADER: Entering ARM TRUSTED FIRMWARE
LOADER: CPU0 executes at 0x0000e000

INFO: BL1: 0x16000 - 0x1c000 [size = 24576]
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.4(debug):bdbc6a6
NOTICE: BL1: Built : 22:27:35, Sep 17 2017
INFO: BL1: RAM 0x16000 - 0x1c000
INFO: BL1: cortex_a53: errata workaround for 835769 was applied
INFO: BL1: cortex_a53: errata workaround for 843419 was applied
INFO: BL1: cortex_a53: errata workaround for 855873 was applied
INFO: BL1: Loading BL2
INFO: Loading image id=1 at address 0x1e000
INFO: Image id=1 loaded at address 0x1e000, size = 0x4008
NOTICE: BL1: Booting BL2
INFO: Entry point address = 0x1e000
INFO: SPSR = 0x3c5
NOTICE: BL2: v1.4(debug):bdbc6a6
NOTICE: BL2: Built : 22:27:38, Sep 17 2017
INFO: BL2: Loading BL31
INFO: Loading image id=3 at address 0x2a000
INFO: Image id=3 loaded at address 0x2a000, size = 0x6020
INFO: BL2: Loading BL33
INFO: Loading image id=5 at address 0x37000000
INFO: Image id=5 loaded at address 0x37000000, size = 0x5c0bd
NOTICE: BL1: Booting BL31
INFO: Entry point address = 0x2a000
INFO: SPSR = 0x3cd
INFO: Boot BL33 from 0x37000000 for 377021 Bytes
NOTICE: BL31: v1.4(debug):bdbc6a6
NOTICE: BL31: Built : 22:27:42, Sep 17 2017
INFO: ARM GICv2 driver initialized
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: errata workaround for 835769 was applied
INFO: BL31: cortex_a53: errata workaround for 843419 was applied
INFO: BL31: cortex_a53: errata workaround for 855873 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x37000000
INFO: SPSR = 0x3c9

U-Boot 2017.09-rc4-gd9afcaf-dirty (Sep 17 2017 - 22:21:50 +0900)poplar

Model: HiSilicon Poplar Development Board
BOARD: Hisilicon HI3798cv200 Poplar
DRAM: 1023.5 MiB
MMC: Hisilicon DWMMC: 0
*** Warning - bad CRC, using default environment

In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Net: configured
No such device: mdio0
No such device: mdio0
No such device: mdio1
gmac1
Warning: gmac1 (eth0) using random MAC address - 86:64:b5:5b:f7:5b

Hit any key to stop autoboot: 0
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 3 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found
scanning usb for ethernet devices… 0 Ethernet Device(s) found

Device 0: Vendor: UFD 2.0 Rev: 1100 Prod: Silicon-Power8G
Type: Removable Hard Disk
Capacity: 7681.0 MB = 7.5 GB (15730688 x 512)
… is now current device
Scanning usb 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
136 bytes read in 22 ms (5.9 KiB/s)
1: Debian
Retrieving file: /extlinux/…/Image
reading /extlinux/…/Image
16548352 bytes read in 1215 ms (13 MiB/s)
append: loglevel=4 root=/dev/sda2 rw rootwait
Retrieving file: /extlinux/…/hi3798cv200-poplar.dtb
reading /extlinux/…/hi3798cv200-poplar.dtb
10233 bytes read in 38 ms (262.7 KiB/s)

Flattened Device Tree blob at 32200000

Booting using the fdt blob at 0x32200000
device_remove: Device ‘ehci@9890000’ failed to remove, but children are gone
Loading Device Tree to 000000003df3d000, end 000000003df427f8 … OK

Starting kernel …

[ 0.130639] OF: amba_device_add() failed (-19) for /soc@f0000000/spi@8b1a000
[ 0.147045] dmi: Firmware registration failed.
[ 2.630453] sd 0:0:0:0: [sda] No Caching mode page found
[ 2.635781] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2.658581] EXT4-fs (sda2): couldn’t mount as ext3 due to feature incompatibilities

Welcome to Debian GNU/Linux 9 (stretch)!

NetworkManager-wait-online.service: Cannot add dependency job, ignoring: Unit NetworkManager-wait-online.service is masked.
[ OK ] Created slice System Slice.
Mounting POSIX Message Queue File System…
Mounting Huge Pages File System…
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Syslog Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.

very Thanks danielt !

Excellent. Thanks for the update!