ibox4412 transplant Ubuntu (kernel3.8.13+13.10 from Friendlyarm and odroid)

Source: Internet
Author: User

Successful implementation of friendly/odroid 3.8.13 kernel and 13.10ubuntu porting on Ibox (SD card)


Implementation features:

Wireless Internet, hdmi1080p (audio sync) output, video playback, sound card, touch screen, LCD and other common drivers are fully ported


Share Next steps

1, porting the Linux kernel, refer to ibox4412 3.0 and 3.5 kernel, friendly transplant odroid 3.8.13 kernel, content Skip

HDMI-related drivers have three places:

\linux-3.8.13\drivers\media\video\s5p-tv (first place not to participate in compilation, not used)

\linux-3.8.13\drivers\media\platform\s5p-tv (the second kernel driver code is exactly the same as the first one, can be used fully, create 3 FB device nodes and 3 video device nodes)

Drivers need to be configured

static struct I2c_board_info Hdmiphy_info = {i2c_board_info ("s5p_hdmiphy", 0x38),//i2c_board_info (" hdmiphy-exynos4412 ", 0x38),};

And

S5p_i2c_hdmiphy_set_platdata (null); S5p_hdmi_set_platdata (&hdmiphy_info, NULL, 0,  exynos4_gpx3 (7)); S5p_ Hdmi_cec_set_platdata (&hdmi_cec_data);
\\192.168.56.102\workspace\4412\tiny\linux-3.8.13\drivers\gpu\drm\exynos (using the DRM method, only registered a FB5, this is the way the official is friendly by default)

Drivers need to be configured

static struct I2c_board_info Hdmiphy_info = {//i2c_board_info ("s5p_hdmiphy", 0x38), I2c_board_info (" hdmiphy-exynos4412 ", 0x38),};
And

S5p_i2c_hdmiphy_set_platdata (null); S5p_hdmi_set_platdata (&hdmiphy_info, NULL, 0,  exynos4_gpx3 (7)); S5p_ Hdmi_cec_set_platdata (&hdmi_cec_data);/* Fixme:hdmiphy i²c adapter have dynamic ID, and setting it to 8 causes * a FAI Lure to initialize (can ' t find clock?). So for now we is relying * on the hdmiphy I²C adapter being dynamically assigned address 8. */i2c_register_board_info (8, &hdmiphy_info, 1);


2. Download version 13.10 Ubuntu image from friendly official

Ubuntu_sd_nanopc_t1.img

View mirrored partition information

[Email protected]:/workspace# fdisk-l ubuntu_sd_nanopc_t1.imgdisk ubuntu_sd_nanopc_t1.img:6396 MB, 6396313600 bytes255 heads, sectors/track, 777 cylinders, total 12492800 sectorsunits = sectors of 1 * = bytessector size ( logical/physical): bytes/512 bytesi/o size (minimum/optimal): + bytes/512 bytesdisk identifier:0x000c4046                  D Evice Boot      Start         End      Blocks   Id  systemubuntu_sd_nanopc_t1.img1          102400      204799       51200    b  W95 fat32ubuntu_sd_nanopc_t1.img2          204800    12492799     6144000  Linux

Ubuntu file system inside the IMG2

Hanging on file system

Mount-o loop,offset=104857600 ubuntu_sd_nanopc_t1.img Udisk

Then copy the contents of the Udisk into the SD card making EXT4 partition.


3, in order to support the HDMI output, need to set

Etc/x11/xorg.conf

# x.org X Server configuration file for xfree86-video-malisection "Device" Identifier "Mali-fbdev" Driver "Mali" Option " Fbdev "           /dev/fb5" option "DRI2"            "true" option "Dri2_page_flip"  "false" option "Dri2_wait_vsync" "true" Option "  ump_cached"      "true" option "  Ump_lock"        "false"        option  "G2d_device" "/dev/video2"        option  "G2d_enable" "false" option "DPMS" "false" endsectionsection "screen" Identifier   "Default screen "Device       " Mali-fbdev "defaultdepth 24EndSectionSection" DRI "Mode 0666EndSection
Set according to the node condition


4, in order to make the user login to have administrator rights

Modify Etc/sudoers

# # This file must is edited with the ' Visudo ' command as root.## please consider adding local content in/etc/sudoers.d/i Nstead of# directly modifying this file.## see the Mans page for details on how to write a sudoers file. #Defaultsenv_resetD Efaultsmail_badpassdefaultssecure_path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host Alias specification# user alias specification# Cmnd alias specification# user Privilege specificationrootall= (all:all) AL L<pre name= "code" class= "CPP" >t1<span style= "White-space:pre" ></span>all= (ALL:ALL) all
Lj<span style= "White-space:pre" ></span>all= (All:all) all
# members of the admin group could gain root privileges%admin all= (all) all# allow members of the group sudo to execute any COMM And%sudo all= (all:all) all# See Sudoers (5) For more information on "#include" directives: #includedir/ETC/SUDOERS.D


5, out of the picture






ibox4412 transplant Ubuntu (kernel3.8.13+13.10 from Friendlyarm and odroid)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.