Runable rpi2

This commit is contained in:
Pascal Vizeli
2018-05-25 15:06:08 +00:00
parent e6acda91c7
commit 50cc88832d
10 changed files with 26 additions and 16 deletions

View File

@@ -5,9 +5,6 @@ export PATH=/env/bin
global linux.bootargs.base
global linux.bootargs.dyn.root
# Init board specific stuff
[ -e /env/config-board ] && /env/config-board
# Autostart
for i in /env/init/*; do
. $i

View File

@@ -1,5 +1,12 @@
#!/bin/sh
global bootm.image="/mnt/disk0.1/boot/bzImage"
global linux.bootargs.dyn.root="root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
mkdir -p /mnt/system
mount -t squashfs /dev/disk0.hassos-system0 /mnt/system
if [ -f "/mnt/system/boot/bzImage" ]; then
global bootm.image="/mnt/system/boot/bzImage"
else
global bootm.image="/mnt/system/boot/zImage"
fi

View File

@@ -1,4 +1,13 @@
#!/bin/sh
global bootm.image="/mnt/disk0.2/boot/bzImage"
global linux.bootargs.dyn.root="root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootfstype=squashfs ro"
mkdir -p /mnt/system
mount -t squashfs /dev/disk0.hassos-system1 /mnt/system
if [ -f "/mnt/system/boot/bzImage" ]; then
global bootm.image="/mnt/system/boot/bzImage"
else
global bootm.image="/mnt/system/boot/zImage"
fi