[uClinux-dev] uClinux and AX4510

Nagarethinam Natarajan natarajan.naga at gmail.com
Mon Jun 16 12:09:26 EDT 2008


We followed these steps.... for AX4510 board...



We want the image to run from RAM and not FLAsh.

We have not enable flash with the jumper setting.

How do figureout:-

(A) To which memory / address) the Image is being loaded and executed.

(B) To execute from RAM, which address should it go.
(C)  Where do I get information on the above issue, in general.?

(D) When I use Linux 2.4 for the same board, I did not face any problem -
kernel panic -

(E) When /rc  folder contained ram0 instead of present ram1,
the error was same but the error message was unable to mount rootfs, unknown
block(0,0) not found..




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



But  after downloading the image on to the board, we the error:



VFS: Cannot open root device "<NULL>" or unknown-block(0,255)

Please append a correct "root=" boot option

Kernel panic - not syncing: unt root fs on unknown-block(0,255)



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



can some one help where we went wrong?



We have followed the steps  ditto...



Thanks



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

Natarajan

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











uClinux-dist-2.6.9 in the transplant process S3C4510B



Ó¦°æÖ÷µÄÒªÇó£¬ÏÖÔÚ°ÑÎÒµÄÒÆÖ²¹ý³ÌÏêÊöÈçÏ£º The moderator should be asked, now my transplant
process described below:

²½Öè: Steps:

1, ½«ÏÂÃæ4¸öÎļþÏÂÔØµ½¹¤×÷Ŀ¼ÖÐ: 1, the following four documents will be downloaded to
the work of the directory:

A:ÏÂÔØuClinuxÔ´Âë: A: Download uClinux source:

http://www.uclinux.org/pub/uClinux/dist/uClinux-dist-20041215.tar.gz

B:ÏÂÔØ×îÐµĹ¤¾ßÁ´: B: download the latest tool chain:

http://opensrc.sec.samsung.com/download/arm-uclinux-tools-base-gcc3.4.0-20040713.sh

C:ÏÂÔØ×îеÄlinuxÄں˺ÍÄں˲¹¶¡: C: download the latest linux-core and core patch:

http://opensrc.sec.samsung.com/download/linux-2.6.9-hsc0.patch.gz

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2

2, °²×°arm-uclinux±àÒëÆ÷ÔÚlinuxÖ÷»úµÄÖÕ¶ËÊäÈë: 2, the installation arm-uclinux compiler
linux host in the terminal enter:

$sh arm-uclinux-tools-base-gcc3.4.0-20040713.sh $ sh
arm-uclinux-tools-base-gcc3.4.0-20040713.sh

»òÕß: Or:

$./ arm-uclinux-tools-base-gcc3.4.0-20040713.sh $. /
Arm-uclinux-tools-base-gcc3.4.0-20040713.sh

ÒòΪ¸Ã±àÒ빤¾ßµÄĬÈϰ²×°Â·¾¶ÊÇ/root//bin/arm-uclinux-tool/bin,ÒªÏëÄں˱àÒëʱϵͳÄܹ»ÕÒµ½Ëü,ÐèÒª¸ü¸ÄÖ÷»úµÄPATH»·¾³±äÁ¿,¸ü¸Ä·½·¨ÊÇ:
Because the compiler tool is the default installation path / root / / bin /
arm-uclinux-tool / bin, in order to compile the kernel, the system can find
it necessary to change the host of the PATH environment variable, change is:

$vi /root/.bash_profile $ vi / root / .bash_profile

ÕÒµ½PATHËùÔÚµÄÐÐ,Ô­À´µÄÖµÓ¦¸ÃÊÇ: PATH to find the line, the original value should be:

PATH=$PATH:$HOME/bin PATH = $ PATH: $ HOME / bin

¸ÄΪ: Read:

PATH=$PATH:$HOME/bin:$HOME/bin/arm-uclinux-tool/bin PATH = $ PATH: $ HOME /
bin: $ HOME / bin / arm-uclinux-tool / bin

È»ºó°´ESCºÍÊäÈë:qw,´æÅÌÍÆ³ö. ESC and then enter: qw, archiving launched.

Ö®ºó×¢ÏúXwindow,ÖØÐµÇ½ϵͳ,ÐµĻ·¾³±äÁ¿¾Í¿ÉÒÔʹÓÃÁË. After the write-off Xwindow, re-landing
system, the new environment variables can be used.

3, ½âѹÄÚºËÔ´Âë 3, to extract the kernel source

$ tar -zxvf uClinux-dist-20041215.tar.gz $ Tar-zxvf
uClinux-dist-20041215.tar.gz

»áÔÚµ±Ç°Ä¿Â¼ÏÂÉú³ÉÒ»¸öеÄĿ¼uClinux-dist; In the current directory will generate a new
directory uClinux-dist;

4, ÖÆ×÷Ò»¸öеÄlinuxÄÚºË: 4, create a new linux kernel:

A: ½âѹеÄlinuxÄÚºË: A: extract the new linux kernel:

$ tar -jxvf  nux-2.6.9.tar.bz2 $ Tar-jxvf nux-2.6.9.tar.bz2

B: ¸øÐµÄÄں˴òÉÏARMNOMMUµÄ²¹¶¡: B: The core of the new bear ARMNOMMU patch:

$ gzip -dc linux-2.6.9-hsc0.patch.gz | patch -p0 $ Gzip-dc
linux-2.6.9-hsc0.patch.gz | patch-p0

5, ΪuClinux¸ü»»×îеÄlinuxÄÚºË: 5, the latest replacement for uClinux linux kernel:

A: ½øÈëuClinuxµÄĿ¼: A: uClinux into the directory:

$ cd uClinux-dist $ Cd uClinux-dist

B: ɾ³ýÔ­À´µÄÄÚºË: B: Delete the original core:

$ rm -rf linux-2.6.x $ Rm-rf linux-2.6.x

C: ¸ü»»ÄÚºË: C: replacement of core:

$mv ../ linux-2.6.9 linux-2.6.x $ mv .. / linux-2.6.9 linux-2.6.x

6, È·¶¨ÅäÖÃ: 6, identified configuration:

A: ÒòΪĿǰ»¹Ã»ÓÐרÃÅÕë¶Ô4510ϵÁеÄkernelÅäÖÃ,ËùÒÔÎÒÃÇʹÓÃespd-4510µÄÅäÖÃ: A: because there is no
specific 4510 series kernel configuration, so we use the configuration
espd-4510:

$cp inux-2.6.x/arch/armnommu/configs/espd_4510b_defconfig
vendor/Samsung/4510B/config.linux-2.6.x $ cp
inux-2.6.x/arch/armnommu/configs/espd_4510b_defconfig
vendor/Samsung/4510B/config.linux-2.6.x

B: ͬÑù,ÓÉÓÚûÓÐÕë¶ÔS3C4510BµÄvendorµÄÅäÖÃ,ËùÒÔʹÓÃ2.4µÄÅäÖÃ: B: Similarly, the absence of the
vendor for S3C4510B configuration, using a 2.4 configuration:

$cp vendor/Samsung/4510B/config.vendor-2.4.x
vendor/Samsung/4510B/config.vendor-2.6.x $ cp
vendor/Samsung/4510B/config.vendor-2.4.x
vendor/Samsung/4510B/config.vendor-2.6.x

7, ÐÞ¸ÄÄÚºË: 7, to amend the kernel:

A: ÐÞ¸Ävendor/Samsung/4510B/Makefile: A: Laws vendor/Samsung/4510B/Makefile:

ÔÚµÚ7ÐÐÖ®ºóÌí¼ÓÒ»ÐУº At the 7 line, add the line:

RAMIMAGE = $(IMAGEDIR)/image.ram RAMIMAGE = $ (IMAGEDIR) / image.ram

ÔÚµÚ68ÐÐÖ®ºóÌí¼ÓÒ»ÐУº In section 68 added after his trip:

$(CROSS_COMPILE)ld -r -o $(ROOTDIR)/$(LINUXDIR)/romfs.o -b\ binary
$(ROMFSIMG) $ (CROSS_COMPILE) ld-r-o $ (ROOTDIR) / $ (LINUXDIR) / romfs.o-b
\ binary $ (ROMFSIMG)

$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S \ $
(CROSS_COMPILE) objcopy-O binary-R. Note-R. Comment-S \

$(ROOTDIR)/$(LINUXDIR)/linux $(RAMIMAGE) $ (ROOTDIR) / $ (LINUXDIR) / linux
$ (RAMIMAGE)

B: ÐÞ¸Ävendor/Samsung/4510B/rc£º B: Laws vendor/Samsung/4510B/rc:

½«µÚ2¡¢4ÐеÄ/dev/ram0¸ÄΪ/dev/ram1; 2,4 will be the first trip / dev/ram0 read /
dev/ram1;

ÔÚ13ÐÐÖ®ºóÌí¼ÓÒ»ÐÐÅäÖÃÍø¿¨,¿ÉÒÔÐÞ¸Ä×Ô¼ºµÄIPµØÖ·£¬ÎÒµÄÉ趨ÊÇ£º 13 firms added after his party card
configuration, can modify their own IP address, I set up is:

ifconfig eth0 202.195.166.144 netmask 255.255.255.0 up ifconfig eth0
202.195.166.144 netmask 255.255.255.0 up

½«×îºóÒ»ÐеÄdhcpcdÓÃhttpd´úÌæ£¨Æô¶¯http·þÎñÆ÷£©¡£ Will be the last line of dhcpcd instead of
using httpd (start http server).

C£ºÐÞ¸Ävendor/config/armnommu/config.arch, ½«42ÐеÄarm-elf¸ÄΪarm-uclinux£¬¼´£º C: Laws
vendor / config / armnommu / config.arch, will be 42 to the arm-elf to
arm-uclinux, namely:

42 CROSS_COMPILE = arm-uclinux- 42 CROSS_COMPILE = arm-uclinux -

D£ºÐÞ¸Älinux-2.6.x/arch/armnommu/arch/kernel/vmlinux-lds, Ìí¼Óromfs.o D: Laws
linux-2.6.x/arch/armnommu/arch/kernel/vmlinux-lds, add romfs.o

81  *(.got) /* Global offset table         */ 81 * (. Got) / * Global offset
table * /

82

83  romfs_start = .; 83 romfs_start =.;

84  romfs.o 84 romfs.o

85  romfs_end = .; 85 romfs_end =.;

×¢ÒâµÈºÅǰºó¶¼ÒªÓÐÒ»¸ö¿Õ¸ñ¡£ Equal attention should have a space before and after.

E£ºÐÞ¸Älinux-2.6.x/arch/armnommu/kernel/setup.c,Ìí¼Ó±äÁ¿romfs_start,
romfs_end¼°ÉèÖÃdefault_command_line£º E: Laws
linux-2.6.x/arch/armnommu/kernel/setup.c, add variables romfs_start,
romfs_end and the setting up of default_command_line:

64 extern int _stext, _text, _etext, _edata, _end; 64 extern int _stext,
_text, _etext, _edata, _end;

65 extern int romfs_start,romfs_end; 65 extern int romfs_start, romfs_end;

.................................................

682 char *from = default_command_line; 682 char * from =
default_command_line;

683 sprintf(default_command_line, "root=/dev/ram0 console=ttyS0,57600
initrd=0x%08lx,%ldk keepinitrd", (unsigned long)&romfs_start,((unsigned
long)&romfs_end - (unsigned long)&romfs_start)>>10); 683 sprintf
(default_command_line, "root = / dev/ram0 console = ttyS0, 57600 initrd =
0x% 08lx,% ldk keepinitrd", (unsigned long) & romfs_start, ((unsigned long)
& romfs_end - (unsigned long) & romfs_start)>> 10 );

ÆäÖУ¬ console=ttyS0,57600Ϊ´®¿ÚµÄ²¨ÌØÂÊÉèÖᣠOne, console = ttyS0, 57600 baud rate for
the serial port settings.

F£ºÐÞ¸ÄuClinux-dist/linux-2.6.x/drivers/serial/serial_s3c4510b.c,¸ü¸Ä´®¿ÚµÄ²¨ÌØÂÊ¡£ F:
Laws uClinux-dist/linux-2.6.x/drivers/serial/serial_s3c4510b.c, the serial
baud rate changes.

×¢Ê͵ô126£­160ÐУ¬ÔÚ161ÐÐÌí¼ÓÒ»ÐУº 126-160 comment out line, add the line in the 161
line:

ubd.bf.cnt0 = 26; ubd.bf.cnt0 = 26;

°ÑµÚ395¡¢451¡¢561ÐеÄ19200¸ÄΪ57600¡£ 395,451,561 to the first line of 19200 to
57600.

ÒÔÉϸĶ¯È·¶¨´®¿ÚʹÓõIJ¨ÌØÂÊÊÇ57600¡£ Serial determine changes over the use of the baud rate
is 57600.

8£¬ ÅäÖÃÄÚºËÖ´ÐÐmake menconfig,ÒÔÏÂȫѡÉÏ,È»ºó±£´æÍ˳ö,ÆäÓà¾ßÌå¸÷ÏîÅäÖÃÔݲ»¸ü¸Ä 8, the implementation of
core configuration make menconfig, following elections on the whole, then
save from the rest of the specific configuration not to change

(linux-2.6.x) Kernel Version (linux-2.6.x) Kernel Version

(uClibc) Libc Version (uClibc) Libc Version

[*] Default all settings (lose changes) (NEW) [*] Default all settings (lose
changes) (NEW)

[*] Customize Kernel Settings (NEW) [*] Customize Kernel Settings (NEW)

[*] Customize Vendor/User Settings (NEW) [*] Customize Vendor / User
Settings (NEW)

[*] Update Default Vendor Settings (NEW) [*] Update Default Vendor Settings
(NEW)

µÚÒ»´ÎÅäÖÃÍ˳ö¿ÉÄÜ»¹»áÒªÇóÑ¡Ôñ°åÀàÐÍ,Ö±½Ó°´Êý×ÖÑ¡espd_4510b¼´¿É¡£ The first allocation may be asked to
select from plate type, the number of directly elected espd_4510b can.

×¢ÒâÔÚÅäÖÃÄں˵Äʱºò¸ü¸ÄSDRAMµÄ´óС¡¢Ñ¡ÖÐhttpd, boa, routeµÈÑ¡Ïî¡£ Attention to the core
configuration changes when the size of SDRAM, check httpd, boa, route and
other options.

9£¬ ±àÒëÖ´ÐÐmake£¬´Ë´¦»á³öÏÖ´íÎ󣬱¨¸æÕÒ²»µ½Ò»¸öÎļþ£¬²»ÒªÀí»á£¬ÏÈmake image,ÔÙmakeһϾͿÉÒÔÁË£¬²»Ðеϰ¼ÌÐøÖØ¸´make
image,make¡£ 9, the compiler implementation make, here would be an error, the
report can not find a file, not ignored, to make image, then click on the
make, not to repeat the words make image, make.

Ö´ÐÐÍêºóimagesĿ¼ÖлáÓÐÒ»ÏÂÎļþ£º After the implementation of images in the directory
will be the document:

[root at localhost images]# ls -la [root @ localhost images] # ls-la

×ÜÓÃÁ¿7552 The total amount of 7552

drwxr-xr-x   2 root root     4096 10ÔÂ  9 12:19 . drwxr-xr-x 2 root root 4096
10ÔÂ9 12:19.

drwxr-xr-x  16 1000 users    4096 10ÔÂ  9 11:46 .. drwxr-xr-x 16 1000 users
4096 10ÔÂ9 11:46 ..

-rw-r--r--   1 root root  2873084 10ÔÂ  9 12:19 image.bin - rw-r - r - 1 root
root 2873084 10ÔÂ9 12:19 image.bin

-rwxr-xr-x   1 root root  1951672 10ÔÂ  9 12:19 image.ram - rwxr-xr-x 1 root
root 1951672 10ÔÂ9 12:19 image.ram

-rwxr-xr-x   1 root root    50200 10ÔÂ  9 12:19 linux.data - rwxr-xr-x 1 root
root 50200 10ÔÂ9 12:19 linux.data

-rwxr-xr-x   1 root root  1903332 10ÔÂ  9 12:19 linux.text - rwxr-xr-x 1 root
root 1903332 10ÔÂ9 12:19 linux.text

-rw-r--r--   1 root root   919552 10ÔÂ  9 12:19 romfs.img - rw-r - r - 1 root
root 919552 10ÔÂ9 12:19 romfs.img

ÉÏÊöÉú³ÉÎļþµÄ˵Ã÷£º The formation of the document:

romfs.img: Õâ¸öÎļþÊÇͨ¹ýtools/romfs-inst.sh ½Å±¾,Éú³Éromfs Ŀ¼¼°ÆäÏÂÃæµÄÎļþ,È»ºóͨ¹ýgenromfs
³ÌÐò´ò°ü³ÉÒ»¸öÎļþromfs.img¡£ romfs.img: This is a file through the tools /
romfs-inst.sh script, generated romfs directory and the following documents,
and then through genromfs procedures packaged into a document romfs.img.
romfs.img ¼È¿ÉÒÔ·ÅÔÚflash ÖÐ,Ò²¿ÉÒÔ·ÅÔÚram ÖÐ,µ«ÐèÒªÔÚ±àÒëÄÚºËʱÔÚdriver/block/blkmem.c
ÀïÖ¸¶¨µØÖ·,ÒÔ±ãÄÚºËÕÒµ½. romfs.img both can be placed on a flash, and also on the ram,
but the need to compile the kernel at the driver / block / blkmem.c in the
designated address, in order to find the core.

linux.text: ±àÒëºóµÄÄÚºËÖÐtext ¶Î,Ò»°ã·ÅÔÚflash ÖÐ,Ö»¶Á. linux.text: After compiling the
core of the text, the general on the flash, read-only.

linux.data: ±àÒëºóµÄÄÚºËÖÐdata,init ¶Î,Ò»°ã·ÅÔÚsdram ÖÐ,¶Áд. linux.data: After compiling
the core of the data, init, the general on the sdram, read and write.

image.bin: ÉÏÃæÈý¸öÎļþ˳ÐòÁ¬½Ó¶øÉú³ÉµÄ= linux.text + linux.data + romfs.img image.bin:
the above three documents linking the order and generated = linux.text +
linux.data + romfs.img

image.ram: Õâ¸öÄÚºËûÓÐѹËõ¹ý,¶øÇÒ±ØÐëÔÚram ÀïÔËÐÐ.ËùÒÔÐèҪͨ¹ý°å×ÓÉϵÄbootloader½«ËüÏÂÔØµ½Ö¸¶¨Î»Öúó¿ªÊ¼Ö´ÐÐ.´Óram
ÀïÆô¶¯ÄÚºË,Ôò´úÂë¶ÎºÍÊý¾Ý¶Î¶¼ÔÚram ÀïÃæ.Õâ¸öÎļþÊDZàÒëÉú³ÉµÄelf ¸ñʽµÄlinuxÄÚºË,ͨ¹ýarm-elf-objcopy
¹¤¾ßÉú³ÉµÄ¶þ½øÖÆÓ³ÏñÎļþ¡£ image.ram: This core has not compressed, and must be in
operation in the ram. so it is necessary to board the bootloader it
downloaded to a designated location after implementation. ram, activated
from the core, code, and data in paragraph ram inside. compile a document
that is generated elf format linux kernel, through arm-elf-objcopy tool to
generate the binary image files.

¶ÔÓÚimage.ramÎļþ,ÀûÓÃbootloader½«Æä¼ÓÔØµ½0x8000µØÖ·´¦Ö´ÐÐ,½ÓÉÏ´®¿Ú¾ÍÄÜ¿´µ½ÈçÏÂÐÅÏ¢ÁË¡£ For image.ram
document, using its load bootloader 0 x8000 address to the Executive,
connected to serial port you can see the information below.

Linux version 2.6.9-hsc0 (root at localhost) (gcc version 3.4.0) #57 Sun Oct 9
12:5 Linux version 2.6.9-hsc0 (root @ localhost) (gcc version 3.4.0) # 57
Sun Oct 9 12:5

CPU: Samsung-S3C4510B [36807001] revision 1 (ARMv4T) CPU: Samsung-S3C4510B
[36807001] revision 1 (ARMv4T)

Machine: ESPD 4510B(S3C4510B) Machine: ESPD 4510B (S3C4510B)

Warning: bad configuration page, trying to continue Warning: bad
configuration page, trying to continue

Built 1 zonelists Built 1 zonelists

Kernel command line: root=/dev/ram0 console=ttyS0,57600
initrd=0xd
Kernel command line: root = / dev/ram0 console = ttyS0, 57600 initrd = 0xd

PID hash table entries: 128 (order: 7, 2048 bytes) PID hash table entries:
128 (order: 7, 2048 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache
hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash
table entries: 2048 (order: 1, 8192 bytes)

Memory: 16MB = 16MB total Memory: 16MB = 16MB total

Memory: 14236KB available (1800K code, 101K data, 56K init) Memory: 14236KB
available (1800K code, 101K data, 56K init)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Mount-cache hash
table entries: 512 (order: 0, 4096 bytes)

checking if image is initramfs...it isn't (ungzip failed); looks like an
initrd checking if image is initramfs ... it isn't (ungzip failed); looks
like an initrd

NET: Registered protocol family 16 NET: Registered protocol family 16

ttyS0 at I/O 0x3ffd000 (irq = 4) is a Samsung S3C4510B Internal UART ttyS0
at I / O 0x3ffd000 (irq = 4) is a Samsung S3C4510B Internal UART

ttyS1 at I/O 0x3ffe000 (irq = 6) is a Samsung S3C4510B Internal UART ttyS1
at I / O 0x3ffe000 (irq = 6) is a Samsung S3C4510B Internal UART

RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize

loop: loaded (max 8 devices) loop: loaded (max 8 devices)

Samsung S3C4510B Ethernet Driver version 0.2 (2004-06-13) <curt at cucy.com>
Samsung S3C4510B Ethernet Driver version 0.2 (2004-06-13) <curt at cucy.com>

NET: Registered protocol family 2 NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes IP: routing cache hash
table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 1024 bind 2048) TCP: Hash tables
configured (established 1024 bind 2048)

NET: Registered protocol family 17 NET: Registered protocol family 17

RAMDISK: romfs filesystem found at block 0 RAMDISK: romfs filesystem found
at block 0

RAMDISK: Loading 898KiB [1 disk] into ram disk... done. RAMDISK: Loading
898KiB [1 disk] into ram disk ... done.

VFS: Mounted root (romfs filesystem) readonly. VFS: Mounted root (romfs
filesystem) readonly.

Freeing init memory: 56K Freeing init memory: 56K

Shell invoked to run file: /etc/rc Shell invoked to run file: / etc / rc

Command: hostname Samsung Command: hostname Samsung

Command: /bin/expand /etc/ramfs.img /dev/ram1 Command: / bin / expand / etc
/ ramfs.img / dev/ram1

Command: mount -t proc proc /proc Command: mount-t proc proc / proc

Command: mount -t ext2 /dev/ram1 /var Command: mount-t ext2 / dev/ram1 / var

Command: mkdir /var/config Command: mkdir / var / config

Command: mkdir /var/tmp Command: mkdir / var / tmp

Command: mkdir /var/log Command: mkdir / var / log

Command: mkdir /var/run Command: mkdir / var / run

Command: mkdir /var/lock Command: mkdir / var / lock

Command: mkdir /var/empty Command: mkdir / var / empty

Command: cat /etc/motd Command: cat / etc / motd

Welcome to Welcome to

____ _  _ ____ _ _

/  __| ||_| / __ | | | _ |

_   _| |  | | _ ____  _   _  _  _ _ _ | | | | _ ____ _ _ _ _

| | | | |  | || |  _ \| | | |\ \/ / | | | | | | | | | _ \ | | | | \ \ / /

| |_| | |__| || | | | | |_| |/    \ | | _ | | | __ | | | | | | | | _ | | / \

|  ___\____|_||_|_| |_|\____|\_/\_/ | ___ \ ____|_||_|_| | _ | \ ____| \ _ /
\ _ /

| | | |

|_| | _ |

For further information check: For further information check:

http://www.uclinux.org/

Command: ifconfig lo 127.0.0.1 Command: ifconfig lo 127.0.0.1

Command: route add -net 127.0.0.0 netmask 255.255.255.0 lo Command: route
add-net 127.0.0.0 netmask 255.255.255.0 lo

Command: ifconfig eth0 202.195.166.144 netmask 255.255.255.0 up Command:
ifconfig eth0 202.195.166.144 netmask 255.255.255.0 up

Command: httpd & Command: httpd &

[15]

Execution Finished, Exiting Execution Finished, Exiting

Sash command shell (version 1.1.1) Sash command shell (version 1.1.1)

/>

²Î¿¼ÎÄÏ×£º References:

1¡¢http://spiritdance.blogchina.com/1089808.html 1,
http://spiritdance.blogchina.com/1089808.html

2¡¢Getting familiar with uClinux/ARM 2.6£º
http://opensrc.sec.samsung.com/document/Getting_Familiar_with_uClinuxARM2_6.html2,
Getting familiar with uClinux / ARM 2.6:
http://opensrc.sec.samsung.com/document/Getting_Familiar_with_uClinuxARM2_6.html

3¡¢ÔÚS3C4510BÉÏÔËÐÐuClinux-2.6µÄ¹ý³Ì£º
http://www.embed.com.cn/bbs/dispbbs.asp?boardID=10&ID=7791&page=6 3, in
S3C4510B running uClinux-2.6 on the process:
http://www.embed.com.cn/bbs/dispbbs.asp?boardID=10&ID=7791&page=6



































===========================Load uClinux========================








Mini TFTP Server 1.0 (IP : 192.168.1.2) - Load uClinux image(RAM)


Command: tftp -i 192.168.1.2 put image.ram




Starting the TFTP download...

....................................

Boot uClinux? (y/n) yLinux version 2.6.9-hsc0 (root at linux-sm5i) (gcc version
3.4


.0) #2 Mon Jun 16 18:14:01 IST 2008

CPU: Samsung-S3C4510B [36807001] revision 1 (ARMv4T)


Machine: ESPD 4510B(S3C4510B)

Warning: bad configuration page,

Built 1 zonelists

Kernel command line: root = / dev/ram0 console = ttyS0, 57600 initrd =
0x00133a4

c, 84076k keepinitrd

PID hash table entries: 64 (order: 6, 1024 bytes)

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)

Inode-cache hash table entries: 102 bytes)

Memory: 8MB = 8MB total

Memory: 6816KB available (1078K code, 126K data, 56K init)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

NET: Registered protocol family 16

ttyS0 at I/O 0x3ffd000 (irq = 4) is a Samsung S3C4510B Internal UART

ttyS1 at I/O 0x3ffe000 (irq = 6) is a Samsung S3C4510B Internal UART

RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize

loop: loaded (max 8 devices)

Samsung S3C4510B Ethernet Driver version 0.2 (2004-06-13) <curt at cucy.com>

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configu512 bind 1024)

NET: Registered protocol family 1

NET: Registered protocol family 17

VFS: Cannot open root device "<NULL>" or unknown-block(0,255)

Please append a correct "root=" boot option

Kernel panic - not syncing: unt root fs on unknown-block(0,255)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20080616/548a6639/attachment.html


More information about the uClinux-dev mailing list