arm_linux_kernel_make - Linux

Table of Contents

※ 引述《xicer (xicer)》之銘言:
: http://opencsl.openfoundry.org/#
: 由於距離該網站發文已經有段時間!!!

opencsl 內容很好,可惜就是資料過時
如果兄臺有空的話,請不吝分享新的軟體組合

: 參考
: http://raspi.springnote.com/pages/8234994.xhtml
: 的步驟,但在最後一步
: Compiling the kernel 失敗,出現
: ----------------------------------------------------
: qemu: hardware error: integratorcm_read : Unimplemented offset 0x1f1018

可參照 qemu/hw/integratorcp.c 原始程式碼:

static uint32_t integratorcm_read(void *opaque, target_phys_addr_t offset)
{
integratorcm_state *s = (integratorcm_state *)opaque;
if (offset >= 0x100 && offset < 0x200) {
/* CM_SPD */
if (offset >= 0x180)
return 0;
return integrator_spd[offset >> 2];
}
...
default:
hw_error("integratorcm_read: Unimplemented offset 0x%x\n",
(int)offset);
return 0;
}
}

0x1f1018 這個位址應是 disk (還記得 kernel 的組態吧),可參考以下 QEMU 參數:
http://www.linuxquestions.org/questions/linux-mobile-81/qemu-error-871095/

為了省事,其實也可以用 QEMU 執行 linux kernel image + initramfs:
http://blog.linux.org.tw/~jserv/archives/001954.html

--

All Comments

Zenobia avatarZenobia2011-09-22
有看到這段code的到default後就不知道怎麼下手了,晚上回來
Lucy avatarLucy2011-09-27
試試,感謝!!!
Oscar avatarOscar2011-09-27
有用新環境弄成功 希望兄台把步驟更新 分享一下^^
Tristan Cohan avatarTristan Cohan2011-10-01
今天又試了,toolchain 參考http://dot-dev.blogspot來做
Agatha avatarAgatha2011-10-05
但是make linux 2.6.18.1跟3.0.4都失敗,都會出現error FPA
Donna avatarDonna2011-10-08
至於jserv大po的initramfs,我想我還要花時間瞭解跟吸收....
Frederica avatarFrederica2011-10-08
忘記說了,我現在是用gcc 4.5.0