Browse Source

- vu+: fix mounting boot partition

master
vanhofen 5 years ago
parent
commit
52400c209d
  1. 4
      make/bootstrap.mk
  2. 8
      make/environment-linux.mk
  3. 2
      skel-root/vuplus/etc/mdev.conf

4
make/bootstrap.mk

@ -35,10 +35,12 @@ ifneq ($(wildcard $(SKEL-ROOT)-$(BOXFAMILY)),)
endif endif
find $(TARGET_DIR) -type f -print0 | xargs --no-run-if-empty -0 \ find $(TARGET_DIR) -type f -print0 | xargs --no-run-if-empty -0 \
sed -i 's|%(BOXMODEL)|$(BOXMODEL)|' sed -i 's|%(BOXMODEL)|$(BOXMODEL)|'
sed -i 's|%(BOOT_PARTITION)|$(BOOT_PARTITION)|' $(TARGET_DIR)/etc/mdev.conf
target-dir: target-dir:
mkdir -p $(TARGET_DIR) mkdir -p $(TARGET_DIR)
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd51)) ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd51 vusolo4k vuduo4k vuultimo4k vuzero4k))
mkdir -p $(TARGET_DIR)/boot mkdir -p $(TARGET_DIR)/boot
endif endif
mkdir -p $(TARGET_DIR)/dev mkdir -p $(TARGET_DIR)/dev

8
make/environment-linux.mk

@ -54,6 +54,8 @@ else ifeq ($(BOXFAMILY), bcm7376)
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ_INITRD = vmlinuz-initrd-7366c0 VMLINUZ_INITRD = vmlinuz-initrd-7366c0
BOOT_PARTITION = 1
# arm-vuduo4k # arm-vuduo4k
else ifeq ($(BOXFAMILY), bcm7278) else ifeq ($(BOXFAMILY), bcm7278)
KERNEL_VER = 4.1.45-1.17 KERNEL_VER = 4.1.45-1.17
@ -71,6 +73,8 @@ else ifeq ($(BOXFAMILY), bcm7278)
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ_INITRD = vmlinuz-initrd-7278b1 VMLINUZ_INITRD = vmlinuz-initrd-7278b1
BOOT_PARTITION = 1
# arm-vuultimo4k # arm-vuultimo4k
else ifeq ($(BOXFAMILY), bcm7444s) else ifeq ($(BOXFAMILY), bcm7444s)
KERNEL_VER = 3.14.28-1.12 KERNEL_VER = 3.14.28-1.12
@ -88,6 +92,8 @@ else ifeq ($(BOXFAMILY), bcm7444s)
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ_INITRD = vmlinuz-initrd-7445d0 VMLINUZ_INITRD = vmlinuz-initrd-7445d0
BOOT_PARTITION = 1
# arm-vuzero4k # arm-vuzero4k
else ifeq ($(BOXFAMILY), bcm72604) else ifeq ($(BOXFAMILY), bcm72604)
KERNEL_VER = 4.1.20-1.9 KERNEL_VER = 4.1.20-1.9
@ -105,6 +111,8 @@ else ifeq ($(BOXFAMILY), bcm72604)
VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_URL = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ_INITRD = vmlinuz-initrd-7260a0 VMLINUZ_INITRD = vmlinuz-initrd-7260a0
BOOT_PARTITION = 4
# mips-vuduo # mips-vuduo
else ifeq ($(BOXFAMILY), bcm7335) else ifeq ($(BOXFAMILY), bcm7335)
KERNEL_VER = 3.9.6 KERNEL_VER = 3.9.6

2
skel-root/vuplus/etc/mdev.conf

@ -76,7 +76,7 @@ fp0 root:root 0660 =dbox/fp0
# Disc devices # Disc devices
sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# Memory cards / eMMC-Partitions # Memory cards / eMMC-Partitions
mmcblk0p1 root:root 0664 @mount -t vfat /dev/$MDEV /boot 2>&1 >/dev/null mmcblk0p%(BOOT_PARTITION) root:root 0664 @mount -t vfat /dev/$MDEV /boot 2>&1 >/dev/null
mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mdev-mmcblk mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mdev-mmcblk
# WLAN devices # WLAN devices

Loading…
Cancel
Save