移植ubuntu core到Arm開發板

2021-06-19 03:32:16 字數 1802 閱讀 8239

最初是想把整個ubuntu移植到mx51開發板,因為專案不需要執行桌面系統,所以只移植了乙個基本的ubuntu core系統

這個映象就是乙個rootfs,可以作為根檔案系統使用。

2. 把映象燒寫到開發板的乙個分割槽上

3. 我的arm開發板是mx51,修改uboot啟動引數如下:

set bootargs_android 'setenv bootargs $ init=/initrdinit=asdf root=b301 rootfs=ext2di0_primary video=mxcdi0fb:rgb24,claa-wvga'

粗體是我增加的引數,解釋下增加的幾個引數:

4. 啟動開發板,會列印出如下資訊:

vfs: mounted root (ext2 filesystem) on device 179:1.

表示已經mount 根檔案系統成功。

這一步可能會出現如下錯誤:

udevd[123]: unable to receive ctrl connection: function not implemented

udevd[123]: unable to receive ctrl connection: function not implemented

udevd[123]: unable to receive ctrl connection: function not implemented

udevd[123]: unable to receive ctrl connection: function not implemented

udevd[123]: unable to receive ctrl connection: function not implemented

udevd[123]: unable to receive ctrl connection: function not implemented

如果你出現了,那麼執行第5步

5. 按鏈結給的patch, 修改核心

6. 編譯核心並燒寫到開發板上,重啟系統後,不會再列印step4的錯誤

7. 支援lcd console,修改核心配置檔案如下

@@ -1228,8 +1228,14 @@ config_fb_mxc_sync_panel=y

# console display driver support

# # config_vga_console is not set

+# config_vgacon_soft_scrollback is not set

config_dummy_console=y

-# config_framebuffer_console is not set

+config_framebuffer_console=y

+# config_framebuffer_console_detect_primary is not set

+# config_framebuffer_console_rotation is not set

+# config_fonts is not set

+config_font_8x8=y

+config_font_8x16=y

重新編譯核心,重啟系統後,可在lcd看到ubuntu的登入console

8 支援serial console,我的開發板沒有usbhost,不能接usb鍵盤,所以需要用serial console控制

重新啟動後,即可在串列埠得到控制台資訊。

openwrt libubox 移植到ARM上

由於專案的需要,需要把openwrt 上的libubox庫移植到arm上,libubox是openwrt的基礎庫,是乙個事件驅動庫,具體的可以到openwrt官網上去了解。宿主機為 ubuntu 10.04 交叉編譯工具鏈版本為 arm linux gcc 4.5.1,目標機為 s3c6410 s5...

移植程式到symbian平台

symbian平台理論上可以平移標準的c c 語 言程式,以及標準庫。只需要在mmp檔案中進行如下編寫 target hello.exe targettype exe uid 0 sourcepath source slhello.c systeminclude epoc32 include lib...

原 移植madplay到arm linux

移植 madplay 需要如下檔案 madplay 0.15.2b.tar.gz,libmad 0.15.1b.tar.gz,libid3tag 0.15.1b.tar.gz 和 編譯方法如下 zlib configure prefix home madplay allokhere 修改makefi...