diff options
author | Roland Hieber <r.hieber@pengutronix.de> | 2017-08-23 17:01:05 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-08-24 16:40:39 +0200 |
commit | e161cc1d4ce6dcb9738f79549f4116508796f7ce (patch) | |
tree | b7c9f17bf90d864ae17df68ec821651761aa6179 /configs/platform-rpi/barebox-defaultenv | |
parent | 3b715f352e91eb9c80af88409d7164dca7ef9c9b (diff) | |
download | DistroKit-e161cc1d4ce6dcb9738f79549f4116508796f7ce.tar.gz DistroKit-e161cc1d4ce6dcb9738f79549f4116508796f7ce.tar.xz |
platform-rpi: barebox-defaultenv: make 'boot net' usable without TFTP
Even though barebox does not yet support the RPi1's ethernet controller,
we can still load the kernel and device tree from the SD card and then
boot the kernel with NFSROOT. This way rapid development is still
possible as long as the kernel does not change.
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-rpi/barebox-defaultenv')
-rw-r--r-- | configs/platform-rpi/barebox-defaultenv/boot/net | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/platform-rpi/barebox-defaultenv/boot/net b/configs/platform-rpi/barebox-defaultenv/boot/net new file mode 100644 index 0000000..7678733 --- /dev/null +++ b/configs/platform-rpi/barebox-defaultenv/boot/net @@ -0,0 +1,6 @@ +#!/bin/sh +global.bootm.image="/boot/linuximage" +global.bootm.oftree="/boot/bcm2835-rpi-b.dtb" + +nfsroot="/home/${global.user}/nfsroot/${global.hostname},v3,tcp" +global.linux.bootargs.dyn.root="root=/dev/nfs ip=dhcp nfsroot=$nfsroot" |