浏览代码

Auto-mount /boot partition

Thomas Buck 8 年前
父节点
当前提交
c690094684
共有 4 个文件被更改,包括 16 次插入2 次删除
  1. 4
    0
      board/raspi/post_build.sh
  2. 2
    2
      board/raspi/post_image.sh
  3. 9
    0
      board/raspi/rootfs_overlay/etc/fstab
  4. 1
    0
      configs/raspi_defconfig

+ 4
- 0
board/raspi/post_build.sh 查看文件

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

+ 2
- 2
board/raspi/post_image.sh 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存