[Skyeye-developer] [SkyEye Doc]How to run S3C44b0 on SkyEye step by step(by Anthony Lee)

kang shuo blackfin.kang at gmail.com
Mon Mar 12 11:32:45 CST 2007


       How to run S3C44b0 linux image on SkyEye
Written by  Anthony Lee <don.anthony.lee at gmail.com>


NOTE: The modification most base on armsys S3C44B0X board

$ export PATH=/usr/local/uclibc-0.9.28-3/arm/bin:$PATH

$ cd ~

$ svn co http://skyeye.svn.sourceforge.net/svnroot/skyeye/skyeye-v1/trunk
$ mv trunk skyeye-v1-svn
$ cd skyeye-v1-svn
$ make
$ cd ~

$ tar jxvf uClinux-dist-20070130.tar.bz2
$ tar jxvf s3c44b0x-2.6.19-uc1-skyeye.tar.bz2
$ bzip2 -d my_uClinux_for_S3C44B0X.patch.bz2

$ cd ~/uClinux-dist/vendors/Samsung
$ cp -a 4510B 44B0X-SkyEye

$ cd ~/uClinux-dist
$ patch -p1 < ../my_uClinux_for_S3C44B0X.patch

$ make menuconfig
########### Options ###############
--- Select the Vendor you wish to target
(Samsung) Vendor
--- Select the Product you wish to target
(44B0X-SkyEye) Samsung Products

(linux-2.6.x) Kernel Version
(uClibc) Libc Version
[ ] Default all settings (lose changes)
[ ] Customize Kernel Settings
[ ] Customize Vendor/User Settings
[ ] Update Default Vendor Settings
##################################

$ make dep
$ make clean

$ make
###################################
make -C tools/ucfront
make[1]: Entering directory `/mnt/stuff/uClinux-dist.modified/tools/ucfront'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/stuff/uClinux-dist.modified/tools/ucfront'
ln -sf /mnt/stuff/uClinux-dist.modified/tools/ucfront/ucfront tools/ucfront-gcc
ln -sf /mnt/stuff/uClinux-dist.modified/tools/ucfront/ucfront tools/ucfront-g++
ln -sf /mnt/stuff/uClinux-dist.modified/tools/ucfront/ucfront-ld
tools/ucfront-ld
make ARCH=arm CROSS_COMPILE=arm-linux- -j1 -C linux-2.6.x bzImage || exit 1
make[1]: Entering directory `/mnt/stuff/uClinux-dist.modified/linux-2.6.x'
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c44b0x
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/asm-arm/asm-offsets.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      init/main.o
######### here please press CTRL+C to stop it ##########

$ make lib_only
$ make user_only
$ make romfs
$ make linux
$ make image

$ cp linux-2.6.x/linux ~/s3c44b0x-2.6.19-uc1-skyeye/
$ cp images/image.rom ~/s3c44b0x-2.6.19-uc1-skyeye/

$ cd ~/s3c44b0x-2.6.19-uc1-skyeye
$ ./gen_rom.sh


$ ~/skyeye-v1-svn/binary/skyeye

####################### Output ############################
Warning: If you want to run ELF image, you should use -e option to
indicate your elf-format image filename. Or you only want to run
binary image,you need to set the filename of the image and its entry
in skyeye.conf.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c44b0x, mach_init addr 0x8072fa0
uart_mod:0, desc_in:, desc_out:
uart_mod:1, desc_in:/dev/ttyS1, desc_out:
lcd_mod:1
ethmod num=1, mac addr=12:34:56:78:90:ab, hostip=10.0.0.1
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./new_image.rom
Uncompressing Linux...................................................................
done, booting the kernel.
Linux version 2.6.19-uc1 (root at lee) (gcc version 3.4.6) #3 Sun Mar 11
14:39:30 CST 2007
CPU: Samsung-S3C44B0x [44b07700] revision 0 (ARMv4T), cr=0000007c
Machine: S3C44B0X Development Board
Built 1 zonelists.  Total pages: 2032
Kernel command line: root=/dev/ram0 initrd=0x0c12dc34,772k
console=ttyS0 keepinitrd
PID hash table entries: 32 (order: 5, 128 bytes)
Division by zero in kernel.
Division by zero in kernel.
Console: colour dummy device 80x30
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 8MB = 8MB total
Memory: 6024KB available (1876K code, 130K data, 76K init)
Mount-cache hash table entries: 512
checking if image is initramfs...it isn't (bad gzip magic numbers);
looks like an initrd
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
ttyS0 at I/O 0x1d00000 (irq = 3) is a Samsung S3C44B0X Internal UART
ttyS1 at I/O 0x1d04000 (irq = 2) is a Samsung S3C44B0X Internal UART
Samsung S3C44B0 Rtl8019as driver version 0.1 (2002-02-20) <hzh12 at 163.net>
eth0: 12:34:56:78:90:ab
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered (default)
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
loop: loaded (max 8 devices)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 772KiB [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 76K
Division by zero in kernel.
Division by zero in kernel.
Shell invoked to run file: /etc/rc
Command: hostname Samsung
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/config
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig eth0 10.0.0.2 netmask 255.255.255.0 up
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

for Debug in SkyEye. <http://www.skyeye.org>

For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>
Sash command shell (version 1.1.1)
/> ls /bin
basename
boa
busybox
date
dhcpcd
dmesg
du
expand
ftp
hostname
ifconfig
inetd
init
login
mount
ping
route
sh
telnet
telnetd
umount
uptime
/>
############################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s3c44b0x-2.6.19-uc1-skyeye.tar.bz2
Type: application/x-bzip2
Size: 2794 bytes
Desc: not available
Url : http://lists.gro.clinux.org/pipermail/skyeye-developer/attachments/20070311/c0d2cfbe/s3c44b0x-2.6.19-uc1-skyeye.tar-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my_uClinux_for_S3C44B0X.patch.bz2
Type: application/x-bzip2
Size: 23197 bytes
Desc: not available
Url : http://lists.gro.clinux.org/pipermail/skyeye-developer/attachments/20070311/c0d2cfbe/my_uClinux_for_S3C44B0X.patch-0001.bin


More information about the Skyeye-developer mailing list