Browse Source

Auto-mount /boot partition

Thomas Buck 8 years ago
parent
commit
c690094684

+ 4
- 0
board/raspi/post_build.sh View File

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

+ 2
- 2
board/raspi/post_image.sh View File

1
 #!/bin/sh
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 View File

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 View File

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

Loading…
Cancel
Save