Commit c3fac95a authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for Rockchip CM3588 Plus

parent 01b8e208
...@@ -27,6 +27,7 @@ boot-nile-orinoco-mini: boot-armv8 ...@@ -27,6 +27,7 @@ boot-nile-orinoco-mini: boot-armv8
boot-raspberry-pi-3-b: boot-armv8 boot-raspberry-pi-3-b: boot-armv8
boot-raspberry-pi-4-b: boot-armv8 boot-raspberry-pi-4-b: boot-armv8
boot-amlogic-s905x: boot-armv8 boot-amlogic-s905x: boot-armv8
boot-friendlyelec-cm3588-plus: boot-armv8
boot-recomputer-j2012: boot-armv8 boot-recomputer-j2012: boot-armv8
boot-recomputer-j4012: boot-armv8 boot-recomputer-j4012: boot-armv8
boot-aws: boot-x86_64 boot-aws: boot-x86_64
...@@ -538,6 +539,55 @@ amlogics905x: ...@@ -538,6 +539,55 @@ amlogics905x:
swapoff swap swapoff swap
rm -rf swap rm -rf swap
friendlyelec-cm3588-plus-clfs:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-cm3588-nas.patch
$(MAKE) -C linux-5.12.10 defconfig
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/friendlyelec-cm3588-plus` ; for config in $$files ; do cat /kernelconfig/friendlyelec-cm3588-plus/$$config >> linux-5.12.10/.config ; done'
$(MAKE) -C linux-5.12.10 oldconfig
$(MAKE) -C linux-5.12.10
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/rockchip/rk3588-cm3588-nas.dtb /boot/machine.dtb
$(MAKE) -C ../kmod tests
rm -rf /kernelconfig
rm -rf linux-5.12.10
swapoff swap
rm -rf swap
friendlyelec-cm3588-plus:
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-cm3588-nas.patch
cp -v /boot/config-5.12.10 linux-5.12.10/.config
/kernelconfig/initramfs/prepare
bash -c 'files=`ls -1 /kernelconfig/friendlyelec-cm3588-plus` ; for config in $$files ; do cat /kernelconfig/friendlyelec-cm3588-plus/$$config >> linux-5.12.10/.config ; done'
$(MAKE) -C linux-5.12.10 oldconfig
$(MAKE) -C linux-5.12.10
rm -rf /lib/modules
rm -rf /boot/dtbs
rm -f /boot/config*
rm -f /boot/vmlinux*
rm -f /boot/System.map*
$(MAKE) -C linux-5.12.10 install modules_install dtbs_install
cp -v linux-5.12.10/.config /boot/config-5.12.10
ln -svf vmlinux-5.12.10 /boot/Image
ln -svf dtbs/5.12.10/rockchip/rk3588-cm3588-nas.dtb /boot/machine.dtb
rm -f /boot/*.old
rm -rf /kernelconfig
rm -rf linux-5.12.10
swapoff swap
rm -rf swap
recomputer-j2012-clfs: recomputer-j2012-clfs:
tar xf linux-5.12.10.tar.xz tar xf linux-5.12.10.tar.xz
patch -Np1 -d linux-5.12.10 < linux-5.12.10-nvidia.patch patch -Np1 -d linux-5.12.10 < linux-5.12.10-nvidia.patch
......
...@@ -142,6 +142,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}" ...@@ -142,6 +142,10 @@ CONFIG_CROSS_COMPILE="${CLFS_TARGET}"
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/> <ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target> </target>
<target name="boot-linux-friendlyelec-cm3588-plus">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target>
<target name="boot-linux-orange-pi-3-lts"> <target name="boot-linux-orange-pi-3-lts">
<ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/> <ant antfile="packages/linux/build.xml" target="boot-linux-armv8"/>
</target> </target>
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment