This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X: Ubuntu support

Other Parts Discussed in Thread: AM3359

Hi,

I have a custom board loosely based on the am335x evm. I succeeded in porting u-boot (version 2013.01.01-psp06.00.00.00) and linux to my board. I used the linux version in the board-port -labs directory (3.2.0-psp04.06.00.11). I understood that this is a linux distribution from the arago project.

My employer was wondering if it's possible to get another linux distribution ( like ubuntu ) on the board. 

We are confused about the location of the operating system. Is it located in the uImage together with the kernel or are these separated ? And if these are separated, where can I find them?

If it is possible to get ubuntu on the board, how can I convert ubuntu in an Image that u-boot can use? And can I keep using the kernel of the board-port-labs ?

  • Hi Laurens,

    Ubuntu is not supported from TI directly for AM335x processors.

    However there is a lot of distributions including Ubuntu ported for AM335x based BeagelBone development platforms and they are supported from beagleboard community http://beagleboard.org.

    These are the supported OS http://elinux.org/BeagleBone#BeagleBone_Operating_Systems

    The community has dedicated forums for support where you can direct all your questions about their distributions:

    http://beagleboard.org/Community/Forums

    Hope this helps,

    BR,

    Vidin

  • Hello Laurens,

    The linux distribution (the filesystem) is separated from uImage (the kernel).  An easy way to see this is to look at an SD card made using the "create-sdcard.sh" script located in the ti-sdk-am335x-evm-06.00.00.00/bin/ directory of the SDK.  It will create two partitions--the boot partition and the rootfs partition.  u-boot and uImage are located in BOOT.  The filesystem is located in ROOTFS.

    In our SDK, the only linux distribution we suppoprt and provide is Arago.  There are tarballs of two different variants of our Arago filesystem in the ti-sdk-am335x-evm-06.00.00.00/filesystem/ directory of our SDK that you can take a look at.

    So kernel and the linux distribution are separated, although the a certain filesystem you create may have kernel modules, init scripts, etc. that are meant to be used with a specific kernel.  So you could probably put any distribution you wanted on top of our 3.2 kernel as long as you compiled it for ARM; all the components of that distribution may not work, however, as our kernel may be missing certain drivers or configurations.

    As I mentioned before, TI only supports Arago; however, the beaglebone community supports and releases a Ubuntu distribution that works on beagleboneblack.  Here is a link that contains pointers to different distributions: http://circuitco.com/support/index.php?title=Ubuntu_On_BeagleBoard_Black

    You could take the Ubuntu filesystem image from the links above and put it on top of our 3.2 kernel;  the board should boot fine.  I would imagine there would be a number of features that would not work, though, so there would be effort involved on your part to get everything functional.

    Do you have a specific reason for using ubuntu?  Perhaps you could get the applications you need on arago by cross compiling them or using Open Embedded.

    Regards,

    Josh

  • I've the same issue too. I would like to run ubuntu 12.04 on a Am335x Starter kit because the reprository is much bigger that the one offered by Arago (the okpg feed). I would like to install Mysql for Zen Cart and it's not that straight forward to cross compile Mysql for ARM. It would be nice if TI can provide a Ubuntu Linux Distribution for their StarterKit.

  • I made some progress on have Ubuntu 12.10 working under AM335x-sk!

    Need more tests, but working ...

    - Using Ubuntu 12.10 for beagle bone with kernel from TI SDK Linux (aka. Arago)...
    - Made some changes to udev, and init scripts;
    - Using lib/modules from TiSDK
    - Using some other .so from TiSDK

    My Blog:
    http://www.fazzi.eng.br/2014/05/ubuntu-1210-para-am335x-starter-kit.html

    Download:
    http://goo.gl/EjfTCH

  • Ubuntu 12.10 for TI AM335x SK:
    Lubuntu, Kernel from TISDK, Touch calibrated

    BOOTFS:
    ROOTFS:

  • @Marcus,

    Thank you for posting these files. I've got this running on my dev kit. 

    Do you have a default root login to get into the system?

    Thanks!

  • Hi! 

    You can log as ubuntu/temppwd and change root password

    sudo su -
    passwd

    I made some upgrades kernel 3.12.18 from TI SDK git, added many USB device driver ... 

    Download:
    ROOTFS:
    ubuntu-12.10-lxde-am335x-sk-rootfs-ext3-armhf-v5.tar.gz 
    MD5:7134b425af15d3685a10ec6ba4e5fc85

    BOOTFS:  
    ubuntu-12.10-console-am335x-sk-boot-fat-armhf-v3.tar.gz 
    MD5:804e06fda0aea7ab941e3f5f95fd2c36

    I cant made internal wifi to works with 3.12.x kernel ... any help is welcome. This not works with default TISDK too.

  • Thanks! I just found your blog after I typed that question :-) 

    I am now throwing the most current files you uploaded onto the devkit. Woke up early just to do it before work. Thanks! Do you have internal ethernet working?

  • Yes, All works: LCD, Touch, Ethernet (both), USB, but cant handle Wifi/BT ...

  • Hey,

    I got it booted up but I'm getting some errors and neither of the ethernet devices show up in ifconfig (just usb0 and lo). 

    Any thoughts? I ran fsck on the two partitions and they're clean. 

    Thanks!

    Output of dmesg:

    http://pastebin.com/V0TjSgmd

    UPDATE: Found that it was eth3 and eth5, sorry!

  • You can clean you 70-persistent-net.rules, to you ethx go correct...

    sudo echo "" > /etc/udev/rules.d/70-persistent-net.rules
    shutdown -r now

  • Dear Marcus,

    Just now i started to work with my TI AM3359 starter kit. I have downloaded the above files and kept these files under SDCARD boot & rootfs partitions.

    This starter kit don't have built in NAND flash. It is booting all the images from (Kernel & rootfs ) from SDCARD.

    My starter kit comes along with AM335X embedded Linux based boot-loader and set all the environment variables under the u-boot source.

    I am using the same boot-loader and updated with sdcard using uBuntu Kernel OS and rootfs files (ubuntu-12.10-console-am335x-sk-boot-fat-armhf-v3.tar.gz, ubuntu-12.10-lxde-am335x-sk-rootfs-ext3-armhf-v5.tar.gz
    ).

    But i am not getting any booting progress when i connect this kit to my serial port. Any boot-loader need to change for uBuntu Linux or any other dependencies.

    Plz Can anybody help on this area.

    Thanks,
    Francis

  • Dear Marcus,

    I am able to run uBubntu on my am335x platform. my startx is running, when i touch on my X application like lxde or gpicview or any it quits the X and need to restart.

    When i touch on my lcd then  it suddenly gui stops and giving segmentation fault error. Can you help me on my issue. 

    ----------------------------------------------------------------------------------------

    root@ubuntu-armhf:/home/ubuntu# startx &
    [1] 3847
    root@ubuntu-armhf:/home/ubuntu#

    X.Org X Server 1.15.1
    Release Date: 2014-04-13
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 3.2.0-67-highbank armv7l Ubuntu
    Current Operating System: Linux ubuntu-armhf 3.12.10-ti2013.12.01 #5 Wed Jun 8 14:40:38 IST 2016 armv7l
    Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=none
    Build Date: 12 February 2015 02:55:07PM
    xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
    Current version of pixman: 0.30.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 1 00:21:18 2000
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    Initializing built-in extension Generic Event Extension
    Initializing built-in extension SHAPE
    Initializing built-in extension MIT-SHM
    Initializing built-in extension XInputExtension
    Initializing built-in extension XTEST
    Initializing built-in extension BIG-REQUESTS
    Initializing built-in extension SYNC
    Initializing built-in extension XKEYBOARD
    Initializing built-in extension XC-MISC
    Initializing built-in extension SECURITY
    Initializing built-in extension XINERAMA
    Initializing built-in extension XFIXES
    Initializing built-in extension RENDER
    Initializing built-in extension RANDR
    Initializing built-in extension COMPOSITE
    Initializing built-in extension DAMAGE
    Initializing built-in extension MIT-SCREEN-SAVER
    Initializing built-in extension DOUBLE-BUFFER
    Initializing built-in extension RECORD
    Initializing built-in extension DPMS
    Initializing built-in extension Present
    Initializing built-in extension DRI3
    Initializing built-in extension X-Resource
    Initializing built-in extension XVideo
    Initializing built-in extension XVideo-MotionCompensation
    Initializing built-in extension SELinux
    Initializing built-in extension XFree86-VidModeExtension
    Initializing built-in extension XFree86-DGA
    Initializing built-in extension XFree86-DRI
    Initializing built-in extension DRI2
    Loading extension GLX
    (EE)
    (EE) Backtrace:
    (EE)
    (EE) Segmentation fault at address 0x0
    (EE)
    Fatal server error:
    (EE) Caught signal 11 (Segmentation fault). Server aborting
    (EE)
    (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    (EE)
    (EE) Server terminated with error (1). Closing log file.
    xinit: connection to X server lost

    [1]+ Done startx

    ----------------------------

    Regards,

    Lofna

  • Dear Marcus,

    I am unable to download the ubuntu bootfs and rootfs dump from the below link:

    Download:
    ROOTFS:
    ubuntu-12.10-lxde-am335x-sk-rootfs-ext3-armhf-v5.tar.gz 
    MD5:7134b425af15d3685a10ec6ba4e5fc85

    BOOTFS:  
    ubuntu-12.10-console-am335x-sk-boot-fat-armhf-v3.tar.gz 
    MD5:804e06fda0aea7ab941e3f5f95fd2c36

    Could you help me to download the files.

    Regards,

    Lofna

  • Sorry for long time, if still need it I can reupload it... I lost my web server ...