diff --git a/features.in/armh-cubox/README b/features.in/armh-cubox/README new file mode 100644 index 00000000..fd08d7c9 --- /dev/null +++ b/features.in/armh-cubox/README @@ -0,0 +1 @@ +Поддержка SolidRun Cubox в расчёте на подключенный по HDMI дисплей FullHD. diff --git a/features.in/armh-cubox/config.mk b/features.in/armh-cubox/config.mk new file mode 100644 index 00000000..a9977472 --- /dev/null +++ b/features.in/armh-cubox/config.mk @@ -0,0 +1,2 @@ +use/armh-cubox: use/armh-dovefb + @$(call add_feature) diff --git a/features.in/armh-cubox/rootfs/image-scripts.d/40-boot b/features.in/armh-cubox/rootfs/image-scripts.d/40-boot new file mode 100755 index 00000000..a70104e3 --- /dev/null +++ b/features.in/armh-cubox/rootfs/image-scripts.d/40-boot @@ -0,0 +1,19 @@ +#!/bin/sh + +mkdir -p /boot + +# 1920x1080 version of the boot script +cat > /boot/boot << EOF +setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p2 ro video=dovefb:lcd0:1920x1080-32@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=0 vmalloc=128M panic=3' +ext2load mmc 0:1 2000000 uimage +ext2load mmc 0:1 2800000 uinitrd +bootm 2000000 2800000 +EOF + +# 1280x720 version of the boot script (not used at the moment) +cat > /boot/boot.720 << EOF +setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p2 ro video=dovefb:lcd0:1280x720-24@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=0 vmalloc=128M panic=3' +ext2load mmc 0:1 2000000 uimage +ext2load mmc 0:1 2800000 uinitrd +bootm 2000000 2800000 +EOF