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.

TI kernel with Angstrom

Hello,

It is quite urgent for me, because it blocks my further work.

I'd like to use kernel from OMAP35x-PSP_04.02.00.07. As there is no file system in that package I'd like to use it from Angstrom distribution. As far as I know I can't simply build that kernel e.g. with CodeSourcery cross-compiler, create uImage and use it with Angstrom rootfs. I was told that it is because kernel and file system are highly integrated, file system is using kernel API to talk to the kernel.

Could you tell how do you use non-Angstrom kernels with Angstrom distro? I tried to get help on Angstrom mailing list without response.

Regards,

Valdez

  • I don't see any major obstacle there.

    I have used Debian 6.0 on DM368, kernel 2.6.32 based on DVSDK4.02; also Ubuntu11 on DM8148, kernel 2.6.37 based on RDK3.2(PSP4.04), both without any problems.

    You can download ubuntu11.10 armel rootfs here: http://cdimage.ubuntu.com/ubuntu-core/releases/11.10/release/

  • Thank you very much.

  • Hi, Hongfeng Wang

    I don't have great experience in embedded linux. I have DM8168 EVM and based on it custom board. Please, can you explain for me how you setup Ubuntu on DM8148. I suppose that in my case it will be very similar. I try to use different images arm-ubuntu, but no result. Thank you.

  • I suggest using SD boot mode, this makes it easier to update file system.

    1. Better make a backup of your factory SD card before you overwrite it.

    2. Download a minimum rootfs tar ball. I used this one: http://cdimage.ubuntu.com/ubuntu-core/releases/11.10/release/ubuntu-core-11.10-core-armel.tar.gz

    3. Extract it to your SD card. edit the rootfs on SD card
    a. Remvoe root password from /etc/shadow
    b. config /etc/network/interfaces and /etc/resolv.conf
    c. create ttyO0.conf in /etc/init (if your bootargs uses ttyO0), here is the sample file

    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]

    respawn
    exec /sbin/getty 115200 ttyO0

    4. You can try booting it up now, but you probably will see some errors related to terminal setup. You can post your problem here, I will try to help you out.

  • Hi, Hongfeng Wang!

    Thank you for your answer. I have not SD card on my board and using NFS. After linux kernel boot and start system initialization I have got several messages from udev: inotify error and than system hung. I can't write exact error messages because I don't have board at this moment. I write problem more exactly then I have board again. (2-3 days). P.S. Sorry for my english.

  • Inotify error could be easily fixed  by recompiling your kernel with inotify enabled.

    CONFIG_FSNOTIFY=y
    CONFIG_INOTIFY_USER=y

    please post the console output when you get the board.

  • Thank you for your attention! I will try this kernel options and show result here.

  • Hi, Hongfeng Wang!

    I rebuilt my kernel with inotify support. And system try boot up, but I have this error message:

    VFS: Mounted root (nfs filesystem) on device 0:14.
    devtmpfs: mounted
    Freeing init memory: 200K
    udevd[98]: error changing net interface name eth0 to eth1: Device or resource busy

    I suppose that is so, because I have NFS mounted root file system. I try to solve this issue by myself, but if I can't, can you help me again?

  • I was solved the problem with renaming eth0 to eth1. On my board there are two DM8168, and they use the same nfs filesystem simultaneously. I switch off CPU1 and this message <udevd[98]: error changing net interface name eth0 to eth1: Device or resource busy> disappear. But system hung at this stage:

    Sending DHCP requests ., OK
    IP-Config: Got DHCP answer from 192.168.0.1, my address is 192.168.0.67
    IP-Config: Complete:
         device=eth0, addr=192.168.0.67, mask=255.255.255.0, gw=192.168.0.1,
         host=192.168.0.67, domain=, nis-domain=(none),
         bootserver=192.168.0.1, rootserver=192.168.0.126, rootpath=
    VFS: Mounted root (nfs filesystem) on device 0:14.
    devtmpfs: mounted
    Freeing init memory: 200K

    How to debug this situation I don't know. Can you give me any advise? Thank you.

  • Update 1: System not hung. I try to use ping

    embedded@kva:~/tftpboot$ ping 192.168.0.67
    PING 192.168.0.67 (192.168.0.67) 56(84) bytes of data.
    64 bytes from 192.168.0.67: icmp_req=1 ttl=64 time=0.259 ms
    64 bytes from 192.168.0.67: icmp_req=2 ttl=64 time=0.184 ms
    64 bytes from 192.168.0.67: icmp_req=3 ttl=64 time=0.142 ms
    64 bytes from 192.168.0.67: icmp_req=4 ttl=64 time=0.214 ms

    and have got answer from my board.  Perhaps I need set up ttyOx properly.

  • Update 2.

    I set ttyO2.conf as you say early and have console output and login prompt. !!!! That I need setup in /etc/networking and /etc/resolv.conf?

    Freeing init memory: 200K

    Ubuntu 11.10 localhost.localdomain ttyO2

    localhost.localdomain login: root
    Welcome to Ubuntu 11.10 (GNU/Linux 2.6.37 armv7l)

     * Documentation:  https://help.ubuntu.com/

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.

    root@localhost:~#

    Do you have any X11 environment instead MatrixGUI? Or how I can add Desktop support for this system?

    I have all need drivers from TI EZSDK and can load all of them into kernel. Thank you!!! For your help :)