-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_kernel.txt
34 lines (24 loc) · 972 Bytes
/
build_kernel.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Resize root partition
=====================
if required: resize root partition
1. take a note of a starting sector of a partition to resize (on SD image on my Git it is 374784)
2. start fdisk on mmc card device /dev/<disk> (usually /dev/mmcblk0)
3. remove the partition and recreate a new, larger partition primary starting from sector 374784. and with desired new size
4. write new prtitions in fdisk with keeping partition signature. exit fdisk
5. resize filesystem to new part.size by resize2fs /dev/<part> (usually /dev/mmcblk0p2)
6. reboot
Run full system update
======================
pacman -Sy
pacman -Su
reboot
Install basic build packages
============================
pacman -S base-devel mc sudo fakeroot binutils tmux patch wget git rsync unzip xmlto docbook-xsl inetutils bc uboot-tools dtc
Build kernel
============
-adjust parallel make jobs in /etc/makepkg.conf
-cd linux and update PKGBUILD & patches
-build:
makepkg --skipinteg
happy building!