[總結]給pcDuino v2編譯Linux kernel

來源:互聯網
上載者:User

標籤:http   io   檔案   for   art   ar   問題   linux   

1、版本問題

推薦選擇pcdunio提供的官方的kernel。

當然可以選用www.github.com/linux-sunxi 中的kernel,不過有很多驅動都用不了包括arduino。

我嘗試了以下的幾個版本,3.29,3.79,3.90,下面是我這些時間的總結,會慢慢更新。

2、具體問題(1)gen_initramfs_list.sh的問題

Cannot open ‘../../linux-sunxi/rootfs/rootfs.cpio.xz‘

make[1]: *** [usr/initramfs_data.cpio.xz] Error 1

make: *** [usr] Error 2

按照如下建立個檔案夾結構,在roofs下面建立一個永久連結,連結到 linux-sunxi-sunxi-v3.4.29-r1/rootfs/sun4i_rootfs.cpio.gz。

├── linux-sunxi-sunxi-v3.4.29-r1

└── rootfs

    └── rootfs.cpio.xz

 

(2)pcduino編譯核心啟動不了

pcduino啟動之後沒有反應,用uart對pcduino進行debug,發現一直卡死在kernel starting。

在編譯kernel開啟CONFIG_DEBUG_LL選項,用uart進行debug可以看到如下的資訊:

<1>Unable to handle kernel paging request at virtual address 34797474

.......
<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

參考資料後,

將arm-gnueabihf-gcc的連結從arm-gnueabihf-gcc-4.8改成arm-gnueabihf-gcc-4.7即可。

 

參考文獻:

[1]http://pcduino.com/forum/index.php?topic=3877.0

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.