トップ «前の日記(2014-10-09(Thu)) 最新 次の日記(2014-10-12(Sun))» 編集

屑俺日記

僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。


2014-10-11(Sat) J2Kansaiの後で

順序的には簡単なことから

買った本で知ったコマンド。
Rasbianでは、カーネルのアップデートは apt-get でできないらしい。

$ ls -l  /boot 
合計 9824
-rwxr-xr-x 1 root root   17840  9月 28 19:44 bootcode.bin
-rwxr-xr-x 1 root root     142  1月  1  1980 cmdline.txt
-rwxr-xr-x 1 root root    1202  1月  3  2014 config.txt
-rwxr-xr-x 1 root root    6115  9月 28 19:44 fixup.dat
-rwxr-xr-x 1 root root    2324  9月 28 19:44 fixup_cd.dat
-rwxr-xr-x 1 root root    9166  9月 28 19:44 fixup_x.dat
-rwxr-xr-x 1 root root     137  5月 26  2013 issue.txt
-rwxr-xr-x 1 root root 3232856  9月 28 19:44 kernel.img
-rwxr-xr-x 1 root root 2615064  9月 28 19:44 start.elf
-rwxr-xr-x 1 root root  533080  9月 28 19:44 start_cd.elf
-rwxr-xr-x 1 root root 3572200  9月 28 19:44 start_x.elf
$ sudo rpi-update 
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7635  100  7635    0     0   6744      0  0:00:01  0:00:01 --:--:--  8826
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 3.12.28+
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    101      0 --:--:--  0:00:01 --:--:--   148
100 22.8M  100 22.8M    0     0   311k      0  0:01:15  0:01:15 --:--:--  283k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 3.12.29+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to \
160290dc9bc4a130162b3205654250f6ba5ae1a0
 *** A reboot is needed to activate the new firmware
$ ls -l /boot
合計 9824
-rwxr-xr-x 1 root root   17840 10月 11 23:06 bootcode.bin
-rwxr-xr-x 1 root root     142  1月  1  1980 cmdline.txt
-rwxr-xr-x 1 root root    1202  1月  3  2014 config.txt
-rwxr-xr-x 1 root root    6123 10月 11 23:06 fixup.dat
-rwxr-xr-x 1 root root    2338 10月 11 23:06 fixup_cd.dat
-rwxr-xr-x 1 root root    9182 10月 11 23:06 fixup_x.dat
-rwxr-xr-x 1 root root     137  5月 26  2013 issue.txt
-rwxr-xr-x 1 root root 3233656 10月 11 23:06 kernel.img
-rwxr-xr-x 1 root root 2618072 10月 11 23:06 start.elf
-rwxr-xr-x 1 root root  536184 10月 11 23:06 start_cd.elf
-rwxr-xr-x 1 root root 3575176 10月 11 23:06 start_x.elf

この結果、3.12.28+ #709 が 3.12.29+ #714になった

クロスコンパイル構築

debootstrapにてchroot環境を構築し、その下に。
本によると、build-essentialと libncurses-dev と git と git-coreが 要るらしい。他に bc も要った。
githubからclone した linuxカーネルは問題なさげであったが、 tools (i386)に嵌った。x86_64でうまく動かせず(i386のライブラリ をホストに入れてもうまくできない)、debootstrap自体を --arch=i386 でやり直してなんとか。

後でtoolsの中を見たら、x86_64もあった。
そのあたりは書く人には、知っていて当たり前なのかと思ったり。

数回中断したものの、15分ほどで終了して、 arch/arm/boot/Imageができた。
さて、どれにインストールしたものか。


リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。

index.htmlは ここから。