-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmemo.txt
59 lines (41 loc) · 1.27 KB
/
memo.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
scp transmission
$scp id@address:srcdir/file destdir
$scp srcdir/file id@address:destdir
clone specific branch
$git clone -b <branch> <remote_repo> --depth 1
-------------------------------------------------------
rpi firmware update
$rpi-update
$apt-get update
$apt-get upgrade
$reboot
rpi configs
$modprobe configs
/proc/config.gz
$ls /lib/modules
-------------------------------------------------
getting crosscompiler
$apt-get install gcc-arm-linux-gnueabi make ncurses-dev
getting kernel source
$...(appropriate version of kernelsource)
copying rpiconfig to kernelconfig
$cd kernelsource
$cp rpiconfigdir/config .config
check version in 'Makefile'
check '.config'
$cat .config | grep CONFIG_LOCALVERSION_AUTO=n
building kernel to make modules
$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- oldconfig
$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig
$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_prepare
download appropriate version of 'Module.symvers'
$wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
---------------------------------------------------------
insert module
$insmod
detach module
$rmmod
check version of module
$modinfo
show printk msg
$dmesg