Bläddra i källkod

Auto-mount /boot partition

Thomas Buck 8 år sedan
förälder
incheckning
c690094684

+ 4
- 0
board/raspi/post_build.sh Visa fil

@@ -0,0 +1,4 @@
1
+#!/bin/sh
2
+
3
+mkdir -p $TARGET_DIR/boot
4
+

+ 2
- 2
board/raspi/post_image.sh Visa fil

@@ -1,5 +1,5 @@
1 1
 #!/bin/sh
2 2
 
3
-cp $BR2_EXTERNAL/board/raspi/boot/cmdline.txt  $BINARIES_DIR/rpi-firmware/cmdline.txt
4
-cp $BR2_EXTERNAL/board/raspi/boot/config.txt  $BINARIES_DIR/rpi-firmware/config.txt
3
+cp $BR2_EXTERNAL/board/raspi/boot/cmdline.txt $BINARIES_DIR/rpi-firmware/cmdline.txt
4
+cp $BR2_EXTERNAL/board/raspi/boot/config.txt $BINARIES_DIR/rpi-firmware/config.txt
5 5
 

+ 9
- 0
board/raspi/rootfs_overlay/etc/fstab Visa fil

@@ -0,0 +1,9 @@
1
+# <file system>	<mount pt>	<type>	<options>	<dump>	<pass>
2
+/dev/root	/		ext2	rw,noauto	0	1
3
+/dev/mmcblk0p1	/boot		vfat	defaults	0	0
4
+proc		/proc		proc	defaults	0	0
5
+devpts		/dev/pts	devpts	defaults,gid=5,mode=620	0	0
6
+tmpfs		/dev/shm	tmpfs	mode=0777	0	0
7
+tmpfs		/tmp		tmpfs	mode=1777	0	0
8
+tmpfs		/run		tmpfs	mode=0755,nosuid,nodev	0	0
9
+sysfs		/sys		sysfs	defaults	0	0

+ 1
- 0
configs/raspi_defconfig Visa fil

@@ -11,6 +11,7 @@ BR2_TARGET_GENERIC_ROOT_PASSWD="camcorder"
11 11
 BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
12 12
 BR2_SYSTEM_DHCP="eth0"
13 13
 BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL)/board/raspi/rootfs_overlay"
14
+BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL)/board/raspi/post_build.sh"
14 15
 BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL)/board/raspi/post_image.sh"
15 16
 BR2_LINUX_KERNEL=y
16 17
 BR2_LINUX_KERNEL_CUSTOM_GIT=y

Laddar…
Avbryt
Spara