Welcome! Log In Create A New Profile

Advanced

uBoot for netgear Stora FDT

Posted by heychris_1 
uBoot for netgear Stora FDT
August 19, 2016 05:18PM
Bodhi,

I went ahead and tried FDT on my netgear stora.

I updated uboot to uboot.2016.05-tld-1.netgear_ms2110.bodhi.tar

I also rewrote the envs following your instructions

With a USB stick formated to ext3 per your instructions with Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 .

I got the following message. I can give you the full output if you'd like. Any ideas?

[ 3.418129] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 3.425798] Please append a correct "root=" boot option; here are the available partitions:
[ 3.434263] 1f00 262144 mtdblock0 (driver?)
[ 3.439349] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.447651] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[ 3.454639] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 3.460971] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[ 3.468761] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[ 3.475676] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[ 3.483198] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[ 3.491072] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[ 3.499120] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[ 3.508047] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[ 3.516188] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[ 3.523799] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Attachments:
open | download - output of stora.txt (14 KB)
Re: uBoot for netgear Stora FDT
August 19, 2016 05:44PM
heychris,

You have switched to boot with DTB, but your uImage still has the DTB embedded in it. You need to restore to it to the original.

This was the step in the Debian rootfs installation that you need to reverse:

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
sync

So
cd /boot
mv uImage uImage.netgear
mv uImage.orig uImage

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: uBoot for netgear Stora FDT
August 20, 2016 10:31AM
Ah! Sorry about that I should have read that more carefully.

Anyhow..

latest uboot - confirmed working
latest Debian with FDT - confirmed working
latest envs - confirmed working
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: