Go to previous topic
Go to next topic
Last Post 24 Aug 2012 01:04 PM by  ftiernan
Building Linux
 11 Replies
Author Messages
ftiernan
New Member
New Member
Posts:


--
21 Jun 2012 06:44 PM
    Trying to build linux for omap35x following README in patch download and Application Note 412 I have loaded CodeSourcery, and Logic Patches (and source for kernel and uboot from Logic patches download). After successfully patching u-boot and then trying to configure u-boot per the README file i get a "No Rule to make target 'omap3logic_config' " message.

    I have not found arnything in FAQs or Discussion Group on this problem.

    Below is the screen shot from the terminal. As I am new to linux perhaps I am missing some obvious step. Any help would be appreciated. Thank you.

    ftiernan@ftiernan-Latitude-2120:~$ cd $UBOOT
    ftiernan@ftiernan-Latitude-2120:~$ which arm-none-linux-gnueabi-gcc
    /home/ftiernan/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
    ftiernan@ftiernan-Latitude-2120:~$ arm-none-linux-gnueabi-g++ -v
    Using built-in specs.
    COLLECT_GCC=arm-none-linux-gnueabi-g++
    COLLECT_LTO_WRAPPER=/home/ftiernan/CodeSourcery/Sourcery_G++_Lite/bin/../libexec/gcc/arm-none-linux-gnueabi/4.5.2/lto-wrapper
    Target: arm-none-linux-gnueabi
    Configured with: /scratch/janisjo/arm-linux-lite/src/gcc-4.5-2011.03/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-arch=armv5te --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} %{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables} -D__CS_SOURCERYGXX_MAJ__=2011 -D__CS_SOURCERYGXX_MIN__=3 -D__CS_SOURCERYGXX_REV__=41 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2011.03-41' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/janisjo/arm-linux-lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpc=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-libelf=/scratch/janisjo/arm-linux-lite/obj/host-libs-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/janisjo/arm-linux-lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/janisjo/arm-linux-lite/install/arm-none-linux-gnueabi/bin
    Thread model: posix
    gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41)
    ftiernan@ftiernan-Latitude-2120:~$ cd $HOME/olfs/u-boot
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot$ ls
    u-boot-2009.08-omap
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot$ cd u-boot-2009.08-omap
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$ make HOSTCC=gcc CROSS_COMPILE=arm-none-linux-gnueabi- omap3logic_config
    make: *** No rule to make target `omap3logic_config'. Stop.
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$

    *********** Just for reference here is a listing for the u-boot-2009.08-omap directory: ***************

    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$ ls
    api common CREDITS examples lib_avr32 lib_i386 lib_nios lib_sparc mkconfig post
    board config.mk disk fs lib_blackfin lib_m68k lib_nios2 MAINTAINERS nand_spl README
    CHANGELOG COPYING doc include libfdt lib_microblaze lib_ppc MAKEALL net rules.mk
    CHANGELOG-before-U-Boot-1.1.5 cpu drivers lib_arm lib_generic lib_mips lib_sh Makefile onenand_ipl tools
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$
    ftiernan
    New Member
    New Member
    Posts:


    --
    22 Jun 2012 01:49 PM
    As a follow-up to this question I see in the u-boot/include/configs directory that there are several possible .h files including "omap3_logic and omap3_zoom1 and omap3_zoom2. I am using zoom omap35x torpedo board. Perhaps I should use one of these. Please advise.
    ftiernan
    New Member
    New Member
    Posts:


    --
    22 Jun 2012 04:43 PM
    Using the omap3_logic_config reference seemed logical since this was the closest to the Logic documentation. Doing so led to a successful result. However, at the next stage running "make ARCH=arm CROSS-COMPILE=arm-none-linux-gnueabi- all" gave a long output ending with the following (screen capture):
    Quote:

    arm-none-linux-gnueabi-ar crv liblogic.a logic.o logic-data.o logic-gpio.o
    a - logic.o
    a - logic-data.o
    a - logic-gpio.o
    make[1]: Leaving directory `/home/ftiernan/olfs/u-boot/u-boot-2009.08-omap/board/omap3/logic'
    make -C /home/ftiernan/olfs/u-boot/u-boot-2009.08-omap/cpu/arm_cortexa8/ u-boot.lds
    make[1]: Entering directory `/home/ftiernan/olfs/u-boot/u-boot-2009.08-omap/cpu/arm_cortexa8'
    make[1]: Nothing to be done for `u-boot.lds'.
    make[1]: Leaving directory `/home/ftiernan/olfs/u-boot/u-boot-2009.08-omap/cpu/arm_cortexa8'
    UNDEF_SYM=`arm-none-linux-gnueabi-objdump -x board/omap3/logic/liblogic.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm_cortexa8/libarm_cortexa8.a cpu/arm_cortexa8/omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/ftiernan/olfs/u-boot/u-boot-2009.08-omap && arm-none-linux-gnueabi-ld -Bstatic -T /home/ftiernan/olfs/u-boot/u-boot-2009.08-omap/cpu/arm_cortexa8/u-boot.lds -Ttext 0x80e80000 $UNDEF_SYM cpu/arm_cortexa8/start.o --start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm_cortexa8/libarm_cortexa8.a cpu/arm_cortexa8/omap3/libomap3.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/omap3/logic/liblogic.a --end-group -L /home/ftiernan/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/armv4t -lgcc -Map u-boot.map -o u-boot
    /home/ftiernan/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/armv4t/libgcc.a(_bswapsi2.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
    make: *** [u-boot] Error 1
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$
    ftiernan@ftiernan-Latitude-2120:~/olfs/u-boot/u-boot-2009.08-omap$
    ftiernan
    New Member
    New Member
    Posts:


    --
    26 Jun 2012 11:40 AM
    Using an earlier version of CodeSourcery (2009q3-67 4.4.1) seems to allow me to get past this point. - FT
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    26 Jun 2012 03:06 PM
    Frank,

    That was the suggestion I just got from my Linux guru.
    I hope that fixed it.
    ftiernan
    New Member
    New Member
    Posts:


    --
    27 Jun 2012 12:21 PM
    Richard,

    Thank you for the confirmation. I've moved through the Application Note 412 up to Step 11.4 (Create a New U-Boot Envirnoment) which is aborting as shown in the screen capture below (steps 11.2 - 11.4):
    Quote:

    Welcome to minicom 2.5

    OPTIONS: I18n
    Compiled on May 2 2011, 00:39:27.
    Port /dev/ttyUSB0

    Press CTRL-A Z for help on special keys


    *****************************************************************

    LogicLoader

    (c) Copyright 2002-2010, Logic Product Development, Inc.
    All Rights Reserved.

    LoLo Version: 2.4.15-OMAP3503 0001
    SOM Model Number: SOMOMAP3530-20-1670AGCR
    SOM Part Number: 1013994
    SOM Serial Number: 2110M00298

    *****************************************************************

    losh> erase /dev/nand0 B2047 B1
    erasing nand: 100%
    erased '/dev/nand0' start=0x7ff: len=0x1 bytes/blocks skipped 0
    losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0 ..
    losh> ifconfig

    sm0: up 100M full-duplex (25)
    sm0: mac: 00:08:ee:03:e1:48 ip: 192.168.0.198
    mask: 255.255.255.0 gw: 192.168.0.1
    losh> load elf /tftp/192.168.0.199:u-boot
    loading from /tftp/192.168.0.199:u-boot:
    ................................................................................
    ELF section 0: download address: 0x80808000 load address: 0x80e80000
    Copying ELF section 0
    loaded 214704 @ 0x80e80000 Ram
    ...done
    file loaded
    losh> exec


    U-Boot 2009.08-rc2/ (Jun 26 2012 - 10:09:54)

    OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz
    OMAP3 Logic + LPDDR/NAND
    DRAM: 128 MB
    NAND: 256 MiB
    NAND: HW ECC selected
    Read production data: done
    Board: Torpedo
    Die ID #35ae002400000000040365f703015004
    Part Number : 1013994
    Model Name : SOMOMAP3530-20-1670AGCR-A
    Serial Number: 2110M00298
    Net: smc911x-0
    Warning: smc911x-0 MAC addresses don't match:
    Address in SROM is 00:08:ee:03:e1:48
    Address in environment is 41:00:30:30:30:30

    Hit any key to stop autoboot: 0
    => set ipaddr 192.168.0.198
    => set serverip 192.168.0.199
    => set netmask 255.255.255.0
    => save
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0xffe0000 -- 100% complete.
    Writing to Nand... done
    => tftp ${loadaddr} uImage
    smc911x: initializing
    smc911x: phy initialized
    smc911x: MAC 41:00:30:30:30:30
    Using smc911x-0 device
    TFTP from server 192.168.0.199; our IP address is 192.168.0.198
    Filename 'uImage'.
    Load address: 0x81000000
    Loading: #################################################################
    #################################################################
    ######################
    done
    Bytes transferred = 777068 (bdb6c hex)
    => tftp ${rootfsaddr} uInitrd
    smc911x: initializing
    smc911x: phy initialized
    smc911x: MAC 41:00:30:30:30:30
    Using smc911x-0 device
    TFTP from server 192.168.0.199; our IP address is 192.168.0.198
    Filename 'uInitrd'.
    Load address: 0x81300000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #####################################
    done
    Bytes transferred = 2181332 (2148d4 hex)
    => bootm ${loadaddr} ${rootfsaddr}
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-2.6.32
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 777004 Bytes = 758.8 kB
    Load Address: 00008000
    Entry Point: 00008000
    Verifying Checksum ... OK
    ## Loading init Ramdisk from Legacy Image at 81300000 ...
    Image Name: uboot ext2 ramdisk rootfs
    Image Type: ARM Linux RAMDisk Image (gzip compressed)
    Data Size: 2181268 Bytes = 2.1 MB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... OK
    Loading Kernel Image ...
    Unhandled Exception:
    exception mode: abort
    fsr: 0x00001808 far: 0x00008000

    **UNRECOVERABLE ERROR**
    There was a memory access exception at 0x00008000 of type 'extern fetch1'
    this may be due to an access to an invalid memory region,
    unaligned access, or a problem with the current memory map.
    Please check the memory layout section of your processor manual.
    For information about the active memory map type 'info cpu'.

    r00: 00008000 r01: 81000040 r02: 000bdb2b r03: 00000000
    r04: 00008000 r05: 80e3fda4 r06: 81000000 r07: 00000001
    r08: 80e3ffdc r09: 81000040 r10: 810bdb6c r11: 00000000
    r12: 00000000 sp: 80e3fd30 lr: 80e8ba90 pc: 80e9d028
    spsr:200001d3 cpsr:200001d7
    bt: sp: 80e3fc6c (stack: 8007ea54 - 80081a54)
    (fp:00000000->80e3fc94, sp:80e3fc6c)




    I note that when I loaded U-Boot (step 11.3) i received a warning that the address in SROM was different from the address in "envirnoment" which I will look into. In the meantime if there is anything obviously wrong that jumps out please let me know.

    One other thing I should mention is that at step 10.4.3 (Repackage the Root File System) I needed to enclose the -n argument in quotes ( "uboot ext2 ramdisk rootfs") in order to get mkimage to run. I am not sure if this is a problem but thought I would mention it as it also resulted in a difference in the output when I loaded uInitrd in AN412 step 11.4 where AN412 shows Image Name: as blank whereas my output shows Image Name: uboot ext2 ramdisk rootfs. Again, thanks for any help you can provide -
    ftiernan
    New Member
    New Member
    Posts:


    --
    28 Jun 2012 04:41 PM
    One additional thing that I note is that after running the "bootm" command (see previous post) the system response for the kernel image is:

    Load Address: 00008000
    Entry Point: 000080000

    versus the AN 412 example which shows:

    Load Address: 80008000
    Entry Point: 80008000

    Do my addresses indicate a problem?

    I re-made the uImage file and received following response to the "file" command:
    Quote:

    ftiernan@ftiernan-Latitude-2120:~/olfs/kernel/linux-2.6.32-logic$ file arch/arm/boot/uImage
    arch/arm/boot/uImage: u-boot legacy uImage, Linux-2.6.32, Linux/ARM, OS Kernel Image (Not compressed), 661836 bytes, Thu Jun 28 15:28:39 2012, Load Address: 0x00008000, Entry Point: 0x00008000, Header CRC: 0x9141FA6C, Data CRC: 0x9B9A53A4

    Which also differs from the expected response shown in AN 412 and contains the questionable addresses so I am wondering if this is an indication that something is wrong with my making of uImage.

    Thanks for any suggestions!
    ftiernan
    New Member
    New Member
    Posts:


    --
    28 Jun 2012 07:27 PM
    Richard,

    You can ignore the last couple of posts as I have must have done something wrong with earlier makes of uImage. I redid it recently with the following result to a "file" command with the expected address:
    Quote:
    ftiernan@ftiernan-Latitude-2120:~/olfs/kernel/linux-2.6.32-logic$ file arch/arm/boot/uImage
    arch/arm/boot/uImage: u-boot legacy uImage, Linux-2.6.32, Linux/ARM, OS Kernel Image (Not compressed), 2515244 bytes, Thu Jun 28 18:02:00 2012, Load Address: 0x80008000, Entry Point: 0x80008000, Header CRC: 0x5D1B79F9, Data CRC: 0x9217A976
    ftiernan@ftiernan-Latitude-2120:~/olfs/kernel/linux-2.6.32-logic$


    I now get the the Uncompressing Linux...........
    Stage of the response to bootm
    there is still something wrong as it seems to hang there and I still do not see "Hello World" but at least it is not aborting on bootm! I'll keep plugging away...
    ftiernan
    New Member
    New Member
    Posts:


    --
    17 Jul 2012 07:12 PM
    Still hung at the bootm stage. Here is the complete sequence and output

    Quote:

    ftiernan@ftiernan-Latitude-2120:~$ kermit
    ?OpenSSL libraries do not match required version:
    . C-Kermit built with OpenSSL 1.0.0e 6 Sep 2011
    . Version found OpenSSL 1.0.1 14 Mar 2012
    OpenSSL versions prior to 1.0.0 must be the same.
    Set LD_LIBRARY_PATH for OpenSSL 1.0.0e 6 Sep 2011.
    Or rebuild C-Kermit from source on this computer to make versions agree.
    C-Kermit makefile target: linux+krb5+openssl
    Or if that is what you did then try to find out why
    the program loader (image activator) is choosing a
    different OpenSSL library than the one specified in the build.

    All SSL/TLS features disabled.

    C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5
    Copyright (C) 1985, 2011,
    Trustees of Columbia University in the City of New York.
    Type ? or HELP for help.
    (/home/ftiernan/) C-Kermit>set modem type none
    (/home/ftiernan/) C-Kermit>set line /dev/ttyUSB0
    (/home/ftiernan/) C-Kermit>set carrier-watch off
    (/home/ftiernan/) C-Kermit>set speed 115200
    /dev/ttyUSB0, 115200 bps
    (/home/ftiernan/) C-Kermit>connect
    Connecting to /dev/ttyUSB0, speed 115200
    Escape character: Ctrl-\ (ASCII 28, FS): enabled
    Type the escape character followed by C to get back,
    or followed by ? to see other options.
    ----------------------------------------------------

    *****************************************************************

    LogicLoader

    (c) Copyright 2002-2010, Logic Product Development, Inc.
    All Rights Reserved.

    LoLo Version: 2.4.15-OMAP3503 0001
    SOM Model Number: SOMOMAP3530-20-1670AGCR
    SOM Part Number: 1013994
    SOM Serial Number: 2110M00298

    *****************************************************************

    losh> erase /dev/nand0 B2047 B1
    erasing nand: 100%
    erased '/dev/nand0' start=0x7ff: len=0x1 bytes/blocks skipped 0
    losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0 ...
    losh> load elf /tftp/192.168.0.199:u-boot
    loading from /tftp/192.168.0.199:u-boot:
    .......................................................................................................
    ELF section 0: download address: 0x80808000 load address: 0x80e80000
    Copying ELF section 0
    loaded 216776 @ 0x80e80000 Ram
    ...done
    file loaded
    losh> exec


    U-Boot 2009.08-rc2/ (Jul 06 2012 - 18:38:56)

    OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz
    OMAP3 Logic + LPDDR/NAND
    DRAM: 128 MB
    NAND: 256 MiB
    NAND: HW ECC selected
    Read production data: done
    Board: Torpedo
    Die ID #35ae002400000000040365f703015004
    Part Number : 1013994
    Model Name : SOMOMAP3530-20-1670AGCR-A
    Serial Number: 2110M00298
    Net: smc911x-0
    Warning: smc911x-0 MAC addresses don't match:
    Address in SROM is 00:08:ee:03:e1:48
    Address in environment is 41:00:30:30:30:30

    Hit any key to stop autoboot: 0
    => set ipaddr 192.168.0.198
    => set serverip 192.168.0.199
    => set netmask 255.255.255.0
    => save
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0xffe0000 -- 100% complete.
    Writing to Nand... done
    => tftp ${loadaddr} uImage
    smc911x: initializing
    smc911x: phy initialized
    smc911x: MAC 41:00:30:30:30:30
    Using smc911x-0 device
    TFTP from server 192.168.0.199; our IP address is 192.168.0.198
    Filename 'uImage'.
    Load address: 0x81000000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################
    done
    Bytes transferred = 2494792 (261148 hex)
    => tftp ${rootfsaddr} uInitrd
    smc911x: initializing
    smc911x: phy initialized
    smc911x: MAC 41:00:30:30:30:30
    Using smc911x-0 device
    TFTP from server 192.168.0.199; our IP address is 192.168.0.198
    Filename 'uInitrd'.
    Load address: 0x81300000
    Loading: #################################################################
    #################################################################
    #################################################################
    #####
    done
    Bytes transferred = 1022272 (f9940 hex)
    => bootm ${loadaddr} ${rootfsaddr}
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-2.6.32
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2494728 Bytes = 2.4 MB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Loading init Ramdisk from Legacy Image at 81300000 ...
    Image Name:
    Image Type: ARM Linux RAMDisk Image (gzip compressed)
    Data Size: 1022208 Bytes = 998.3 kB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux............................................................................................................................................................. done, booting the kernel.



    I expect to see some output related to the startup of the kernel but there is nothing. Any suggestions or troubleshooting advice would be appreciated.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    18 Jul 2012 03:26 PM
    Frank,

    I'd recommend you use the Ask A Question system. It doesn't look like a lot of other suggestions are coming in.
    steven.eckhoff@logicpd.com
    Basic Member
    Basic Member
    Posts:192


    --
    13 Aug 2012 04:14 PM
    Frank,

    I looked into this for you and it looks like you don't have your bootargs set. You can set them up manually or use a script in the U-Boot env by typing the following at the U-Boot prompt:

    run ramboot

    You may run into the same errors I got after doing this one of them was that the /etc/init.d was not allowing root to run it. You will need to go back to the step where you mounted the ramdisk.img and change the file permissions by typing the following:

    sudo chmod u+wx

    Additionally, you may need to create device nodes tty2, tty3 and tty4

    sudo mknod -m 660 tty2 c 4 2
    sudo mknod -m 660 tty3 c 4 3
    sudo mknod -m 660 tty4 c 4 4

    Best regards, Steven Eckhoff
    ftiernan
    New Member
    New Member
    Posts:


    --
    24 Aug 2012 01:04 PM
    Thank you Steven, this worked!

    In case it might be useful for others, here are the bootargs that worked for my setup:

    Quote:
    => setenv bootargs display=15 console=ttyS0,115200 root=/dev/ram0 ramdisk_size=109000
    => saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0xffe0000 -- 100% complete.
    Writing to Nand... done


    Thanks again for your expert help!

    Frank


    ---