#!/bin/sh # Please check http://cross-stuff.sourceforge.net/ for licensing information (BSD) and latest version . ../../common/scripts/.packages.sh . ../../common/scripts/.common-defs.sh . ./.platform-defs.sh # Customize to suit your needs USE_STANDALONE="FALSE" # Not implemented USE_RAID="FALSE" # broken USE_USB="TRUE" # Filesystems WHICH_FS="NFS" # Either JFS, XFS, EXT2, EXT3, REISER or NFS INCLUDED_FS="EXT2" # Which FS utilities to include ? # SSL/SSH ? INCL_SSL="TRUE" # OpenSSL INCL_SSH="TRUE" # OpenSSH # inetd features INCL_INETD="TRUE" # inetd ? INCL_TELNETD="TRUE" # telnetd ? # Flash features HAS_FLASH="FALSE" # Flash available ? INCL_MTD="TRUE" # Flash available, through MTD ? # Which devices are there ? HAS_IPRO1000="FALSE" # Intel PRO 1000 ? HAS_PCMCIA="FALSE" # PCMCIA supported ? # Additional libraries INCL_LIBICONV="FALSE" # Libconv INCL_SQLITE3="FALSE" # SQLITE3 ? INCL_RENDEZVOUS="TRUE" # RendezVous [Apple] # GLIB/GTK ? INCL_GLIB="FALSE" # GLIB INCL_GTK="FALSE" # GTK INCL_GLIB2="FALSE" # GLIB2 # Web Browser INCL_FFMPEG="TRUE" # FFMPEF A/V codecs libraries INCL_DILLO="FALSE" # Dillo Web Browser # Multimedia INCL_PLAY_AVI="TRUE" # play-avi program # XFree86 (tiny X) INCL_TINYX="TRUE" # KDRIVE ? INCL_EVT="FALSE" # EVT driver and library IS_ROOTFS_RO="FALSE" # Is the Root FS Read/Only ? HAS_LSOF="FALSE" # lsof utility ? INCL_UUID="TRUE" # libuuid library ? HAS_RSYNC="FALSE" # rsync utility ? . ../../common/scripts/.build-rootfs.sh # Build a RANDISK cd $DIST_DIR'/'${PLATFORM} sudo rm -fr initrd initrd.gz ramdisk dd if=/dev/zero of=initrd bs=1k count=24576 2> /dev/null mkdir -p ramdisk mke2fs -F -m 0 -i 1024 initrd > /dev/null sudo mount -t ext2 -o loop initrd ramdisk cd ramdisk/ sudo cp -Rdp ../rootfs/* . cd .. sudo umount ramdisk/ gzip -9 initrd mkdir -p /tftpboot/${PLATFORM} cp initrd.gz /tftpboot/${PLATFORM} sudo rmdir ramdisk ############# # fis load ramdisk # fis load zImage # exec -r 0xa00000 -s 0xa00000 -c "root=/dev/ram console=ttyAM" ############# # load -r -v -b 0x800000 EDB9315A/initrd.gz # load -r -v -b 0x80000 EDB9315A/zImage # exec -r 0x800000 -s 0x800000 # exec -r 0x800000 -s 0x800000 -c "root=/dev/ram console=ttyAM" ############# ############# # load -r -v -b 0x80000 EDB9315A/zImage # exec -r 0x800000 -s 0x600000 -c "root=/dev/nfs rw nfsroot=192.168.0.4:/home/osingla/sf/cross-stuff/xcross/EDB9315A/rootfs ip=192.168.0.11:192.168.0.4::::eth0:off" ############# # load -v -r -b 0xa00000 EDB9315A/initrd.gz # fis create -b 0xa00000 ramdisk # load -v -r -b 0x80000 EDB9315A/zImage # fis create -b 0x80000 zImage # fis load ramdisk # fis load zImage # exec -r 0xa00000 -s 0xa00000 -c "root=/dev/ram console=ttyAM" ############# # 0x00000000-0x00040000 : "RedBoot" # 0x00040000-0x00a40000 : "ramdisk" # 0x00a40000-0x00b80000 : "zImage" # 0x00b80000-0x00fc0000 : "unallocated" # 0x00fc0000-0x00fc1000 : "RedBoot config" # 0x00fe0000-0x01000000 : "FIS directory" # ############# # load -v -r -b 0xa00000 EDB9315A/rootfs-jffs2.img # fis create -b 0xa00000 ramdisk # fis load zImage # exec -c "root=/dev/mtdblock1 ro rootfstype=jffs2" #