參考資訊:
https://www.ekesete.net/log/?p=9504
https://haruka.cafe/posts/it/p000157/
https://github.com/ichinomoto/dm200_tools
https://qiita.com/alt-core/items/0467dca2f4b50d3e3003
步驟如下:
$ cd $ wget https://github.com/steward-fu/website/releases/download/ldd/arm_gcc-4.9.tar.gz $ tar xvf arm_gcc-4.9.tar.gz $ sudo mv gcc-4.9 /opt $ export PATH=/opt/gcc-4.9/bin/:$PATH $ git clone https://github.com/ichinomoto/dm200_debian_kernel $ cd dm200_debian_kernel $ git checkout dm250_dev $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dm250_defconfig $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage -j4 multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0) $ vim scripts/dtc/dtc-lexer.lex.c +640 extern YYLTYPE yylloc; $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage -j4 $ ./mkkrnlimg arch/arm/boot/zImage kernel.img