README: install linux modules
This commit is contained in:
parent
41a917d030
commit
3c33a7bd4d
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
@ -63,17 +63,21 @@ cd linux-mediatek
|
|||
git checkout <commit_I_recommend>
|
||||
cp <this_repo>/kernel/linux-mediatek-<commit_hash>.config .config
|
||||
cp <this_repo>/kernel/mt7623n-bananapi-bpi-r2.dts arch/arm/boot/dts
|
||||
mkdir modules
|
||||
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- oldconfig
|
||||
make -j4 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- zImage dtbs
|
||||
make -j4 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=./modules zImage dtbs modules modules_install
|
||||
mkdir boot.setup
|
||||
mkdir root.setup
|
||||
mount /dev/mmcblk0p1 boot.setup
|
||||
mount /dev/mmcblk0p2 root.setup
|
||||
cp arch/arm/boot/zImage boot.setup
|
||||
cp arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb boot.setup/dts
|
||||
rsync -uavP modules/lib/modules/ root.setup/lib/modules
|
||||
mkimage -A arm -T script -C none -n "Load Kernel" -d <this_repo>/u-boot/boot.cmd boot.img
|
||||
cp boot.img boot.setup
|
||||
sync
|
||||
umount boot.setup
|
||||
rmdir boot.setup
|
||||
umount boot.setup root.setup
|
||||
rmdir boot.setup root.setup
|
||||
```
|
||||
|
||||
## root-partition:
|
||||
|
|
Loading…
Reference in a new issue