網樂通 kernel 2.6.32.59 upgrade - Linux
By Edith
at 2021-08-09T01:42
at 2021-08-09T01:42
Table of Contents
原文吃光來回一下舊文.
STLinux在2.4後的3.10版放棄SuperH支援,所以kernel更新只到2.4支援的2.6.32版為止.
然而網路上流傳的版本是2.6.32.59,和STLinux提供的最後一版2.6.32.61仍稍有落差.
所以試著把kernel先弄上2.6.32.61,之後再看看有沒有機會步進到EoL的2.6.32.71...
先準備好各種版本的kernel源碼包↓
https://github.com/suzuke/kernel-pdk7105/archive/master.zip
http://archive.stlinux.com/stlinux/2.4/updates/SRPMS/stlinux24-host-kernel-source-sh4-2.6.32.59_stm24_0211-211.src.rpm
http://archive.stlinux.com/stlinux/2.4/updates/SRPMS/stlinux24-host-kernel-source-sh4-2.6.32.61_stm24_0215-215.src.rpm
STLinux提供的rpm包解開內有三個檔(以下以2.6.32.59包為例)↓
linux-2.6.32.tar.bz2
linux-2.6.32.59.patch.bz2
linux-2.6.32.59_stm24_sh4_0211.patch.bz2
所以理論上也可以拿kernel.org的2.6.32.59包套最後一個patch得到STLinux版kernel.
整理好STLinux的2.6.32.59版kernel源碼,這是pdk7105包的基礎.
跑一下diff可得到兩版差異↓
/usr/src/# diff -Naur linux-2.6.32.59/ kernel-pdk7105-master/ > pdk7105.patch
然後把patch拿去套在STLinux的2.6.32.61版上,幾乎都可以套.
/usr/src/linux-2.6.32.61# patch -p1 --dry-run < ../pdk7105.patch
差異只差在localversion-stm沒有更動(?)上,所以就直接上了!
/usr/src/linux-2.6.32.61# patch -p1 < ../pdk7105.patch
完成後記得把localversion-stm.rej刪掉,反正是沒用的東西.
最後就可以照pdk7105包的說明,使用make.sh進行編譯.
/usr/src/linux-2.6.32.61# ./make.sh kernel
可以成功編譯出uImage.gz(在arch/sh/boot/下),應該算是成功了吧...
但我網樂通DOM掛了還沒改USB母座,所以沒法測能否真的拿來開機,等改好了再說.
==
話說FB社團應該是廢了吧,我申請半個月也沒回應,管理員是退坑+放生了嘛...?
為何當初會設私密社團,現況下社團內張貼的開發資訊對外界來說根本跟亡佚沒兩樣.
板友有社團成員身分的,希望能考慮把文章搬運出來,為這一段歷史多留幾份紀錄.
--
--
STLinux在2.4後的3.10版放棄SuperH支援,所以kernel更新只到2.4支援的2.6.32版為止.
然而網路上流傳的版本是2.6.32.59,和STLinux提供的最後一版2.6.32.61仍稍有落差.
所以試著把kernel先弄上2.6.32.61,之後再看看有沒有機會步進到EoL的2.6.32.71...
先準備好各種版本的kernel源碼包↓
https://github.com/suzuke/kernel-pdk7105/archive/master.zip
http://archive.stlinux.com/stlinux/2.4/updates/SRPMS/stlinux24-host-kernel-source-sh4-2.6.32.59_stm24_0211-211.src.rpm
http://archive.stlinux.com/stlinux/2.4/updates/SRPMS/stlinux24-host-kernel-source-sh4-2.6.32.61_stm24_0215-215.src.rpm
STLinux提供的rpm包解開內有三個檔(以下以2.6.32.59包為例)↓
linux-2.6.32.tar.bz2
linux-2.6.32.59.patch.bz2
linux-2.6.32.59_stm24_sh4_0211.patch.bz2
所以理論上也可以拿kernel.org的2.6.32.59包套最後一個patch得到STLinux版kernel.
整理好STLinux的2.6.32.59版kernel源碼,這是pdk7105包的基礎.
跑一下diff可得到兩版差異↓
/usr/src/# diff -Naur linux-2.6.32.59/ kernel-pdk7105-master/ > pdk7105.patch
然後把patch拿去套在STLinux的2.6.32.61版上,幾乎都可以套.
/usr/src/linux-2.6.32.61# patch -p1 --dry-run < ../pdk7105.patch
差異只差在localversion-stm沒有更動(?)上,所以就直接上了!
/usr/src/linux-2.6.32.61# patch -p1 < ../pdk7105.patch
完成後記得把localversion-stm.rej刪掉,反正是沒用的東西.
最後就可以照pdk7105包的說明,使用make.sh進行編譯.
/usr/src/linux-2.6.32.61# ./make.sh kernel
可以成功編譯出uImage.gz(在arch/sh/boot/下),應該算是成功了吧...
但我網樂通DOM掛了還沒改USB母座,所以沒法測能否真的拿來開機,等改好了再說.
==
話說FB社團應該是廢了吧,我申請半個月也沒回應,管理員是退坑+放生了嘛...?
為何當初會設私密社團,現況下社團內張貼的開發資訊對外界來說根本跟亡佚沒兩樣.
板友有社團成員身分的,希望能考慮把文章搬運出來,為這一段歷史多留幾份紀錄.
--
--
Tags:
Linux
All Comments
By Elma
at 2021-08-13T12:53
at 2021-08-13T12:53
By Olive
at 2021-08-18T00:04
at 2021-08-18T00:04
By Agatha
at 2021-08-22T11:15
at 2021-08-22T11:15
By Mason
at 2021-08-26T22:27
at 2021-08-26T22:27
By Yuri
at 2021-08-31T09:38
at 2021-08-31T09:38
By Odelette
at 2021-09-04T20:49
at 2021-09-04T20:49
By Skylar DavisLinda
at 2021-09-09T08:00
at 2021-09-09T08:00
By Charlie
at 2021-09-13T19:12
at 2021-09-13T19:12
By Erin
at 2021-09-18T06:23
at 2021-09-18T06:23
By Barb Cronin
at 2021-09-22T17:34
at 2021-09-22T17:34
By Charlie
at 2021-09-27T04:45
at 2021-09-27T04:45
By Jessica
at 2021-10-01T15:57
at 2021-10-01T15:57
By Zenobia
at 2021-10-06T03:08
at 2021-10-06T03:08
By Connor
at 2021-10-10T14:19
at 2021-10-10T14:19
By Poppy
at 2021-10-15T01:30
at 2021-10-15T01:30
By Jacob
at 2021-10-19T12:42
at 2021-10-19T12:42
By Jack
at 2021-10-23T23:53
at 2021-10-23T23:53
By Olivia
at 2021-10-28T11:04
at 2021-10-28T11:04
Related Posts
makefile for loop 問題
By Lily
at 2021-08-06T12:23
at 2021-08-06T12:23
shellscript tar問題
By Annie
at 2021-08-05T21:35
at 2021-08-05T21:35
直立外接螢幕待機後無法重開
By Joseph
at 2021-08-05T14:27
at 2021-08-05T14:27
makefile for loop 問題
By Megan
at 2021-08-04T16:25
at 2021-08-04T16:25
想實現在外面連回家中的Linux主機
By Zanna
at 2021-08-03T01:42
at 2021-08-03T01:42