RG350

build kernel


步驟如下:

$ cd
$ wget https://github.com/tonyjih/RG350_linux/releases/download/2019.10.27/toolchain-2019-10-27.tar.bz2
$ tar xvf toolchain-2019-10-27.tar.bz2
$ sudo mv gcw0-toolchain /opt
$ export PATH=$PATH:/opt/gcw0-toolchain/usr/bin

$ git clone https://github.com/tonyjih/RG350_linux
$ cd RG350_kernel
$ ARCH=mips make rg350_defconfig
$ ARCH=mips make vmlinuz.bin -j4

CONFIG_CMDLINE

"mem=0x0100M mem=0x0100M@0x30000000 console=ttyS2,57600 console=tty0 boot=/dev/mmcblk0p1 loop0=/boot/rootfs.squashfs root=/dev/loop0 rootfstype=vfat rootwait ro init=/sbin/init"

P.S. Kernel使用loop0掛載rootfs並且執行/sbin/init


返回上一頁