Yesterday, Hardkernel released the first version of Ubuntu for ODroid-X development board based on Linux 3.6-rc1 and Linaro Ubuntu Desktop 12.07.
This is still early work, but here’s the current status:
- Linux Kernel 3.6-rc1 with gcc 4.7.1 Linaro toolchain
- SMP driven Quad-Core processing
- PMIC device driver
- USB 2.0 High-speed Host driver for Exynos-4412 HSIC interface
- Ethernet + USB Hub device driver
- LCD display driver
- HDMI display driver (Very early version and it may have HDMI 1.4a compatibility issues with some monitors)
To do:
- Audio codec driver
- eMMC device driver
- Clock control driver
- 3D HW-GPU X11 driver (This may need couple of months)
- Power-off support
- WiFi module is not working with Ubuntu GUI. Hardkernel Wi-Fi module is not working due to missing driver
There are 2 images: one for LCD display kits, one for HDMI output that can be downloaded via:
- BitTorrent – One file with both images? Very slow for me.
- HTTP preferably to be used if BitTorrent is blocked by your ISP.
Once the download complete, uncompress the image and copy on a 8GB SD card or greater as follows:
1 |
sudo dd if=odroidx_20120807-linaro-precise-ubuntu-desktop_with_HDMI.img of=/dev/sdX |
where X is the letter of your SD card device on your system. If you’re using a 8GB SD card, there might be some slight differences in size, and you could see the following message:
1 |
dd: writing to '/dev/sdb': No space left on device |
If you still try to boot Ubuntu with this SD card, the boot will miserably fail to mount the rootfs:
1 2 3 4 5 6 7 8 |
[ 3.935000] EXT4-fs (mmcblk0p3): bad geometry: block count 1955584 exceeds size of device (1895424 blocks) [ 3.985000] List of all partitions: [ 3.985000] b300 7639040 mmcblk0 driver: mmcblk [ 3.990000] b301 4095 mmcblk0p1 00000000-0000-0000-0000-000000000000 [ 4.000000] b302 53248 mmcblk0p2 00000000-0000-0000-0000-000000000000 [ 4.005000] b303 7581696 mmcblk0p3 00000000-0000-0000-0000-000000000000 [ 4.015000] No filesystem could mount root, tried: ext4 [ 4.020000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3) |
Run the following command to fix and resize the rootfs partition:
1 2 |
sudo fsck.ext4 /dev/sdb3 sudo resize2fs /dev/sdb3 7000M |
Now you’re ready to insert the SD card in the board. Make sure the Jumper to boot from SD card is inserted and start the board. After slightly over 1 minute the Ubuntu desktop should appear.
Boot time would be greatly reduced with initramfs support and a Class 4 or 10 SD card. I’m using a cheap SD card and the system response is not that great at the moment, although it’s still usable. Hardkernel Wi-Fi module is using Ralink RT5370 chipset, and the driver was not included in this image. I’ve built the driver successfully, but memory allocation error at load time prevent it from working correctly. Without network, I’ve decided not to review Ubuntu just yet.
If you want to customize the kernel, Hardkernel made it available on github. If you don’t have it already installed the Linaro cross-toolchain in Ubuntu:
1 |
sudo apt-get install gcc-arm-linux-gnueabihf |
For other distributions, you can download the latest gcc-linaro binary image, and uncompress it to your system
Now you can retrieve the code and build it:
1 2 3 4 5 6 7 |
git clone https://github.com/hardkernel/linux.git cd linux git checkout odroidx-next -b odroidx-next make ARCH=arm odroidx_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 18 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules -j 18 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=./ -j 18 |
To copy arch/arm/boot/zImage to your SD-Card, use the following command in your host PC:
1 |
sudo dd iflag=dsync oflag=dsync if= ./arch/arm/boot/zImage of=/dev/sdX seek=1057 |
and copy the modules to the rootfs.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
Let me get this correct. There is an ARM Linux hardware 3D/OpenGL able driver for Mali400, but projects like Lima are dedicated for open source driver?
@e8hffff
I’m not a specialist about this, but I understand the ARM Linux Mali Drivers come as binary blobs, plus some open source parts and each time modifications are need you need to ask the manufacturers to update (at least some of) those blobs, which may or may not happen. The Lima project would make the complete ARM Linux Mali 400 drivers open source.
X11 GPU support seems to be something pretty complicated as it always take months to get this done.
Great board and topic!
Can you test something for me?
Is it possible to test the encoding processor power of this cpu within ubuntu linux on the odroid-x board?
You can install ffmpeg with the command: apt-get install ffmpeg (and this version include all options) and execute:
wget http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi
ffmpeg -i big_buck_bunny_480p_surround-fix.avi -acodec libvorbis -ab 128k -vcodec libx264 -vb 2000k -threads 0 webmout.webm
How many fps does this board encode realtime?
I am looking into getting one of these, or something similar. I know they are intended to be used as mobile development boards but I want one to tinker with as a small computer. Mainly it would be used for streaming HD video from a NAS, but I would also use it to play around as a small linux computer. I was looking at the Pandaboard and the ODROID-X. Pandaboard seems to have a much larger community following and support. Do you see this coming from the hardkernal dev’s and/or community? I am just worried that the things that do… Read more »
@h0ly lag This is a tricky question, and I’d need a crystal ball to give a sure answer. The Pandaboard has been available since 2009 (or 2010), is still popular, supported by Linaro, and after several years the platform is pretty stable. ODroid-X is much newer (last month), so that’s normal there is less community behind it, but for the price it’s likely it will be popular. It may take some time for the platform to be stable however. I’m also hoping for Linaro ODroid-X or Origen 4 Quad support which would be great help for Ubuntu support. Development boards… Read more »
The rt5370 driver provided by ralink would build, but threw up errors when I tried to load it. To get the wifi working I rebuilt the kernel with the rt2x00 module and rt5370 support.
@helpinghand
Good effort. FYI, Hardkernel released a new Ubuntu image today – http://odroid.foros-phpbb.com/t1171-linux-kernel-36-rc1-runs-ubuntu-1204-on-odroid-x#5687 with Wifi support using Ralink source code.
If you have time, maybe you could compare the performance of the driver you use vs the one in the new HK image.
Any updates on audio support?
Is there any possibility of getting 3D console support? Don’t necessarily want to run full-blown X, but I’d like to write some OpenGL apps that can be started from the cmdline.
How much wattage consumption does this use in one hr?
Would it be easy to run xibo client on this dev board?
@Jesse
Yes, just use the same method as for Mele a1000 – http://www.cnx-software.com/2012/05/04/xibo-digital-signage-running-on-mele-a1000-allwinner-a10-set-top-box/
I still do not expect video to be working, and performance should still be poor due to lack if hardware acceleration.
Hi cnxsoft,
Can I ask how you worked out exactly where to seek to to dump the zImage?
Thanks,
Chris
@Chris Varnsverry
I can’t remember exactly. Maybe I read it somewhere, or I just saw the following lines in the kernel output:
Aah, I feel an idiot. Thanks!
Hello,
is already a new Ubuntu image available?
Has anybody used the WLan Dongle with success?
Thanks for your answer
Hanni
@Hanni Hannsel
Yes, RT5370 driver should now be working. I haven’t tried it yet, but I’ve read the forums. I’m waiting for Ubuntu with GPU accel before trying again.
how to do apply ODROID-A?
@Nathaniel Jobs
It seems ODROID-A may have been discontinued, and if you need a developer’s tablet you may have to buy ODROID-Q2 (Exynos 4412) instead: http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G135278861948