2009-01-20 01:52:04     Question about uclinux image file

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2009-01-20 01:52:04     Question about uclinux image file

Kaustubh Vaidya (INDIA)

Message: 68136   

 

Hi ;

 

Sorry for asking a simple question but I am not getting which ELF file created in Images folder of uclinux directory will be useful for downloading on SDRAM of my custom BF532 board?

 

Thank you....................

QuoteReplyEditDelete

 

 

2009-01-20 09:34:06     Re: Question about uclinux image file

Mike Frysinger (UNITED STATES)

Message: 68151   

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images

QuoteReplyEditDelete

 

 

2009-01-20 17:33:01     Re: Question about uclinux image file

David Welch (UNITED STATES)

Message: 68166   

 

I used "linux.initramfs"and downloaded it the the Stamp using the tftp process.

 

Also consider modifying the default RC file settings to boot directly from the network rather than having to use the serial connection each time. You will need to recompile the kernel.

 

/uClinux-dist/vendors/AnalogDevices/BF533-EZKIT/rc

 

hostname blackfin

mount -t proc proc /proc

mount -t ramfs ramfs /var

mount -t sysfs sysfs /sys

mount -t devpts devpts /dev/pts

[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb

[ -d /sys/kernel/debug ] && mount -t debugfs debugfs /sys/kernel/debug

[ -d /proc/sys/fs/binfmt_misc ] && mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc

[ -d /sys/kernel/security ] && mount -t securityfs securityfs /sys/kernel/security

grep -qs nfsd /proc/filesystems && mount -t nfsd nfsd /proc/fs/nfsd

if [ -e /bin/mdev ] ; then

    echo /bin/mdev 2>/dev/null > /proc/sys/kernel/hotplug

    /bin/mdev -s 2> /dev/null

fi

mkdir /var/tmp /var/log /var/run /var/lock

ifconfig eth0 YOUR CLIENT IP ADDRESS HERE up

dhcpcd &

ifconfig lo 127.0.0.1

inetd &

#cat /etc/issue

cat /etc/motd

 

While at the U-boot prompt you can add the environment variables to automatically download your compiled kernel and user apps with each reboot. The instructions are located here: http://docs.blackfin.uclinux.org/doku.php?id=downloading_to_the_target

 

-David

 

 

 

 

QuoteReplyEditDelete

 

 

2009-01-20 23:25:34     Re: Question about uclinux image file

Kaustubh Vaidya (INDIA)

Message: 68168   

 

Thank you for the valuable suggestions . Ethernet connectivity is not available on my board so I must use serial connection for data transfer. As mentioned in Images document , Kernels that are in the bootable U-Boot format will typically contain Image in their name (such as uImage or vmImage), while kernels that are in the ELF format will typically contain linux in their name (such as linux or vmlinux).So as my board contains u-boot so is it benifitial to port uImage.initramfs on board?

 

 

 

Thank You...........................

QuoteReplyEditDelete

 

 

2009-01-21 03:33:57     Re: Question about uclinux image file

Mike Frysinger (UNITED STATES)

Message: 68173   

 

i really dont know what you mean by "beneficial".  as the document explains, the ELF and uImage formats contain the same things, just in different formats, and the uImages are typically smaller.

QuoteReplyEditDelete

 

 

2009-01-21 04:25:26     Re: Question about uclinux image file

Kaustubh Vaidya (INDIA)

Message: 68185   

 

Sorry I didnt cleared what is mean by  "beneficial".

 

I can  download the image file from serial port only,it will take time to load big image file so "beneficial" means smaller size image file created in image folder. But as all image file contain same things so  I can use smaller sized files  right?.

 

If I booted  image sucessfully from SDRAM & from next time I want to boot the kernel from spi flash then I need to load rootfs.jffs2  file from SDRAM to flash right?

 

Thank You................................

QuoteReplyEditDelete

 

 

2009-01-22 03:40:28     Re: Question about uclinux image file

Kaustubh Vaidya (INDIA)

Message: 68217   

 

I reffered to jffs document for solving rootfs.jffs2 related querry.While reffering I did not understand first step

 

setting the source to describe the JFFS2 image location to the kernel

 

I did not understand what is source & kenel in this line ?

 

Kernel means image file like vmlinux or other file?

 

this rootfs.jffs2 is basically a kernel file or file system?

 

Thank You.............................

QuoteReplyEditDelete

 

 

2009-01-22 09:34:32     Re: Question about uclinux image file

Mike Frysinger (UNITED STATES)

Message: 68235   

 

as the images document explains, all files that start with "rootfs." are file system images

QuoteReplyEditDelete

 

 

2009-01-22 22:54:49     Re: Question about uclinux image file

Kaustubh Vaidya (INDIA)

Message: 68258   

 

So this means if I downloaded only rootfs.jffs2 file on spi flash then it is sufficient to boot the kernel from spi flash?

QuoteReplyEditDelete

 

 

2009-01-22 23:08:31     Re: Question about uclinux image file

Mike Frysinger (UNITED STATES)

Message: 68261   

 

generally speaking, sure

Attachments

    Outcomes