[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Dreamplug support



Hello,


I've tried installing Debian on a dreamplug with the last buster files without success (upgrading u-boot, automatic partitioning, etc...), after that i've tried installer of stretch, buster and bullseye:

For that i created a sdcard with this files:

=> fatls usb 1:1
 12485159   uInitrd_buster
  2065781   uImage_buster
   351196   u-boot_buster.kwb
 11710900   uInitrd_stretch
  2075991   uImage_stretch
   282604   u-boot_stretch.kwb
 10497874   uInitrd_testing
  2328477   uImage_testing
   318316   u-boot_testing.kwb


The plan is to try upgrading uboot with each <dist> u-boot, reboot, reset env, savenv and try installers.


For flashing u-boot:

usb start
fatload usb 1:1 0x0800000 u-boot_stretch.kwb
sf probe 0
sf erase 0x0 0x80000
sf write 0x0800000 0x0 0x80000
reset
env default -a
editenv ethaddr
f0:ad:4e:XX:XX:XX
editenv eth1addr
f0:ad:4e:XX:XX:XX
save


There is not big differences env between u-boot:


U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000)

U-Boot 2019.01+dfsg-7 (May 14 2019 - 02:07:44 +0000)

U-Boot 2020.10+dfsg-1+b1 (Nov 19 2020 - 03:55:49 +0000)


=> printenv
baudrate=115200
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootdelay=3
eth1addr=f0:ad:4e:XX:XX:XX        <= added by command above
ethact=egiga0
ethaddr=f0:ad:4e:XX:XX:XX       
<= added by command above

fdtcontroladdr=1fb9e7c0        <= added since buster u-boot
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200
x_bootargs_root=root=/dev/sda2 rootdelay=10
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootcmd_usb=usb start


This is the problem, installer use a tiny ext2 partition for the uImage and another partition ext4 for root filesystem (and another for swap but is not relevant) and uboot expect a tiny fat partition for uImage, and ext4.

I tried :

Using a tiny fat partition mounted on /boot and ext4 partition for / but installer "hang" with being unable to make file.

Using a tiny fat partition mounted on /boot/fat and ext4 partition for /

Replacing x_bootcmd_kernel=fatload usb 0 0x6400000 uImage by x_bootcmd_kernel=ext2load usb 0 0x6400000 uImage or x_bootcmd_kernel=ext4load usb 0 0x6400000 uImage

But the only most result i was getting is:


[   10.724017] List of all partitions:
[   10.727522] No filesystem could mount root, tried:
[   10.727525]
[   10.733946] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   10.742248] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-14-marvell #1 Debian 4.19.171-2
[   10.750543] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   10.756855] [<c00166dc>] (unwind_backtrace) from [<c0013640>] (show_stack+0x18/0x1c)
[   10.764636] [<c0013640>] (show_stack) from [<c03e5224>] (panic+0xb8/0x250)
[   10.771551] [<c03e5224>] (panic) from [<c05135a4>] (mount_block_root+0x244/0x2e8)
[   10.779074] [<c05135a4>] (mount_block_root) from [<c0513820>] (prepare_namespace+0x14c/0x18c)
[   10.787636] [<c0513820>] (prepare_namespace) from [<c05130e8>] (kernel_init_freeable+0x1e0/0x260)
[   10.796550] [<c05130e8>] (kernel_init_freeable) from [<c03e6bcc>] (kernel_init+0x10/0xf8)
[   10.804763] [<c03e6bcc>] (kernel_init) from [<c00090e0>] (ret_from_fork+0x14/0x34)
[   10.812360] Exception stack(0xdf4bdfb0 to 0xdf4bdff8)
[   10.817438] dfa0:                                     00000000 00000000 00000000 00000000
[   10.825653] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   10.833866] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   10.840514] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---


I admit I do most work on armhf were u-boot search for a script (or EFI, extlinux, ...) and boot, do i need to correct armel u-boot do the same ?


Thanks.


Reply to: