The DENX U-Boot and Linux Guide (DULG) forkatmaiTable of contents:1. Abstract• 2. Introduction2.1. Copyright♦ 2.2. Disclaimer♦ 2.3. Availability♦ 2.4
not available http://mira.sunsite.utk.edu/eldk/ftp://ftp.sunet.se/pub/Linux/distributions/eldk/ http://ftp.sunet.se/pub/Linux/distributions/eldk/3.2.
nr_inodes: The maximum number of inodes for this instance. The default is half of the number ofyour physical RAM pages.• These parameters accept a suf
Disk /dev/hda: 16 heads, 63 sectors, 1575 cylindersUnits = cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System/dev/h
9.4. Splash Screen Support in LinuxTo complement the U-Boot Splash Screen feature the new configuration option"CONFIG_FB_PRE_INIT_FB" was ad
In all cases we will base our experiments on the same content of the root filesystem; we use the images of theSELF (Simple Embedded Linux Framework) t
additional storage needed for writable persistent data• Actually there are only very few situations where a ramdisk image is the optimal solution. But
$ ROOTFS_SIZE=3700 # size of file system image$ ROOTFS_FREE=100 # free space wanted$ ROOTFS_INODES=380
To create a JFFS2 based root file system please proceed as follows:Create a directory tree with the content of the target root filesystem. We do this
########doneBytes transferred = 2033888 (1f08e0 hex)Copy image to flash:=> cp.b 100000 40400000 ${filesize}Copy to Flash... done3. set up
Advantages are:file system uses compression, thus making efficient use of flash memory• Allows for quick boot times as only used files get loaded and
dev/ptypf → /tmpfs/dev/ptypf dev/ttypf → /tmpfs/dev/ttypftmp → /tmpfs/tmp var → /tmpfs/vardev/log → /var/log/logIn case you use dhclient also:etc/dhcl
There is also an ELDK for ARM and MIPS systems. 3.5. Installation3.5.1. Product PackagingStable versions of the ELDK are distributed in the form of an
9.5.4. Root File System on a Read-Only ext2 FileSystemWhen storing the root file system in on-board flash memory it seems only natural to look for spe
dev/ptype → /tmpfs/dev/ptype dev/ttype → /tmpfs/dev/ttypedev/ptypf → /tmpfs/dev/ptypf dev/ttypf → /tmpfs/dev/ttypftmp → /tmpfs/tmp var → /tmpfs/vardev
zone(2): 0 pages.Kernel command line: root=/dev/mtdblock6 ro rootfstype=ext2 ip=192.168.3.80:192.168.3.1::255.255.255.0:tqm860l:eth1:off panic=1Decrem
zone(1): 0 pages.zone(2): 0 pages.Kernel command line: root=/dev/hda1 ro ip=192.168.3.80:192.168.3.1::255.255.255.0:tqm860l:eth1:off panic=1Decremente
drwxr-xr-x 2 wd users 4096 Apr 13 01:11 bin-rwxr-xr-x 1 wd users 469512 Apr 11 22:47 bin/nashdrwxr-xr-x 2 wd us
The newly created file linux.img is the second image we have to copy to the CF card.We are done.But wait - one essential part was not mentioned yet: t
And how does this work on our target?First we copy the two images to the CF card; we do this on the target under Linux:bash-2.05b# fdisk -l /dev/hdaDi
Image 1: 238433 Bytes = 232.8 kB Verifying Checksum ... OK Uncompressing Multi-File Image ... OK Loading Ramdisk to 00f3d000, end 00f77361
ext2 on CF (ro) 9.3 sec 10.9 MB whole image noFile on FAT fs 11.4 sec 7.8 MB whole image yesAs you can see, the ramdisk solution is the worst of all i
Non persistant changesRamdisks are often used when the root file system needs to be modified non-persistantly. This works well, butdownsides are the l
To download the ISO image from the ppc-linux-x86/iso directory of one of the mirror sites you can usestandard tools like wget or ncftpget, for example
mount -t tmpfs -o rw,size=32M none $STORAGE/sbin/modprobe mini_fomount -t mini_fo -o base=/,sto=$STORAGE / $MOUNT_POINTexec /usr/sbin/chroot $MOUNT_PO
9.8.2. ExampleWe will show a sample usage of pramfs in this section using normal DRAM on a board with at least 256MBof memory. For pramfs we reserve t
a look at the GDB sources and patches that come with the ELDK source. 10.1. Debugging of U-BootWhen U-Boot starts it is running from ROM space. Runnin
(gdb) print/x ((gd_t *)$r2)->relocaddrWith this knowledge, we can instruct gdb to forget the old symbol table and reload the symbols with ourcalcul
Sections: Size Address Align.this 00000060 cf030000 2**2.text 000002f4 cf030060 2**2.rodata 00000134 cf0
10.2.3. GDB Macros to Simplify Module LoadingThe following GDB macros and scripts help you to load kernel modules into GDB in a half-automatic way. It
detach target remote bdi:2001enddefine add-module shell ~/add-symbol-file.sh $arg0 source ~/add-symbol-file.gdbenddocumen
10.5. Application Debugging10.5.1. Local DebuggingIn case there is a native GDB available for your target you can use it for application debugging as
(gdb) l1 #include <stdio.h>23 int main(int argc, char* argv[])4 {5 printf ("Hello world\n");6
12.2.9. ARM Architecture Programming◊ 12.2.10. Power Architecture® Programming◊ 12.2.11. Embedded Topics◊ 12.3. Mailing Lists♦ 12.4. Links♦ 12.5. Tool
Specifies the target CPU family the user desires to install. If one or more<cpu_family> parameters are specified, only the target components spe
Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman: "Linux Device Drivers", 3rd Edition;Paperback: 636 pages; O'Reilly & Associ
Ulrich Drepper: Position Independent Binaries: "Text Relocations"http://people.redhat.com/drepper/textrelocs.html• Ulrich Drepper: "How
12.2.6. C++ programmingBooksScott Meyers: "Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rdEdition)", Addison-Wesle
IBM PDF compiler writers guide on PPC asm tuning etc.:http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF7785256996007558C6• A deve
12.4. Links Linux Kernel Resources:The Linux Documentation Project : http://www.tldp.org/• Generic ("official") Linux Kernel sources:git: ht
13. Appendix13.1. BDI2000 Configuration file♦ • 13. Appendix13.1. BDI2000 Configuration file;bdiGDB configuration file for IBM 440SPe Reference Board;
WSPR 0x194 0x00000500 ;IVOR4 External InputWSPR 0x195 0x00000600 ;IVOR5 AlignmentWSPR 0x196 0x00000700 ;IVOR6 Program
14.1.5. System Include Files Missing◊ 14.1.6. patch: command not found◊ 14.1.7. ELDK Include Files Missing◊ 14.1.8. Using the ELDK on a 64 bit platfor
14.3.19. Combining a Kernel and a Ramdisk into a Multi-File Image◊ 14.3.20. Adding Files to Ramdisk is Non Persistent◊ 14.3.21. Kernel Configuration f
[Thanks to Rafal Jaworowski for these detailed instructions.] This is a short tutorial how to hostELDK on FreeBSD 5.x and 6.x. The procedure described
For the above commands to work correctly, it is crucial that the correct rpm binary gets invoked. In case ofmultiple ELDK installations and RedHat-bas
Hints for building U-Boot:FreeBSD normally uses BSD-style 'make' in base, but in order to compile U-Boot'gmake' (GNU make) has to
(use "ps -axf" which gives you a nice hierarchy, look for the "install" process, then for"rpm") and then attach to it wi
Yes, this is possible. It requires only minor adjustments. The following example assumes you areusing a SCSI disk drive, but the same can be done with
=> run net_disk14.1.5. System Include Files MissingQuestion:when installing ELDK on Ubuntu 6.06 dapper drake I get the following error messages...
bash$ <eldkroot>/bin/rpm -e kernel-headers-ppc_<target>bash$ cd <eldkroot>/ppc_<target>bash$ rm usr/include/asmbash$ tar -xvzf
If this is not the case, then fix this problem first. It might just be that you are not using the right crossdebugger in the first place.14.1.10. How
.ident "GCC: (GNU) 4.2.2" .section .note.GNU-stack,"",@progbitsThe use of floating point machine instructio
Build for SPE v2 support (as needed for example for a P2020 QorIQ processor, using theppc_85xxDP target architecture):$ export CROSS_COMPILE=ppc_85xxD
tools/usr/lib/rpm/rpmpopt-4.0.3bash$ tar jxf /tmp/ELDK-update-2.2.0.tar.bz2Then build the ISO image as documented, and try again.14.1.12. Enable S
you to solve your problem.Question:Why?Answer:U-Boot expects to see a virgin CPU on many platforms, i. e. the CPU state must match what you seeif the
bash$ ${CROSS_COMPILE}gcc -o hello_world hello_world.c You can also call the cross tools using the generic prefix ppc-linux- for example:bash$ ppc-lin
14.2.3. Source object has EABI version 4, buttarget has EABI version 0Question:When trying to build U-Boot with an EABI compliant tool chain, I get su
Argument:But my board ran fine with bootloader XYZ and/or operating system ABC.Answer:Double-check your configuration that you claim runs properly...A
To debug parts of U-Boot that are running from ROM/flash, i. e. before relocation, just use acommand like "powerpc-linux-gdb uboot" as usual
Now you have to calculate the address offset between your link address (The value of the TEXT_BASEdefinition in your board/?/config.mk file). In our c
But if I build it using gcc-3.4.6 based cross tools, U-Boot on my board boots correctly.The same U-Boot code built by ELDK 4.1 (gcc-4.0) failed, nothi
In the example above, the area 40050000 ... 40050100 lies right in the middle of a erase unit(40040000 ... 4005FFFF), so you cannot erase it without e
You can set the "locally administered" bit to make your own MAC address (no guarantee ofuniqueness, but pretty good odds if you don't d
RAM Configuration:Bank #0: 0c000000 8 MBBank #1: 0c800000 8 MBFlash: 2 MB*** Warning - bad CRC, using default environmentIn: serialOut: serial
problems is if your PHY is hard configured in duplex mode (for example 100baseTX Full Duplex or10baseT Full Duplex). If such a setup is combined with
setenv addip 'setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off'14.2.17.2. Hush
you can use the following directory as the NFS-based root file system:/opt/eldk/ppc_8xx Before the NFS-mounted root file system can work, you must cre
(sequence) to (load and) boot an alternative image, etc.Example:=> addr1=0=> addr2=10=> bootm $addr1 || bootm $addr2 || tftpboot $loadaddr $l
14.2.19. How can I create an uImage from a ELF fileQuestion:I would like to run a standard distribution kernel on my target, but I can find only ELF k
I tried adding some new code to the hellow_world.c demo program. This works well as soon as Ionly add code to the existing hello_world() function, but
For recent kernel the "clocks_in_mhz" variable must not be set. If it is present in your environment, youcan delete it as follows:=> sete
14.3.1. Linux crashes randomlyQuestion:On my board, Linux crashes randomly or has random exceptions (especially floating point exceptionsif it is a Po
c0182f54 b log_bufHere the virtual address of the buffer is 0xC0182F54For 2.6 kernels "__log_buf" must be used:bash$ grep __log_buf System.m
14.3.5. Linux Kernel Ignores my bootargsQuestion:Why doesn't the kernel use the command-line options I set in the "bootargs" environmen
What you are looking for is the CONFIG_ROOT_NFS configuration option, which depends onCONFIG_IP_PNP.To enable root filesystem over NFS you must enable
Most probably you have one or missing entries in the /dev directory in your root filesystem. If youare using the ELDK's root filesystem over NFS,
14.3.11. Ethernet does not work in LinuxQuestion:Ethernet does not work on my board. But everything is fine when I use the ethernet interface inU-Boot
$ ${CROSS_COMPILE}rpm -i /mnt/cdrom/SRPMS/<source_rpm_file_name>.src.rpmAfter an ELDK source RPM is installed using the above command, its spec
Question:I expect to see some Linux kernel messages on the console, but there aren't any.Answer:This is absolutely normal when using the ELDK wit
# cat /etc/init_ttyFor details, please see "man 4 console_codes" . 14.3.16. BogoMIPS Value too lowQuestion:We are only seeing 263.78 bogomip
14.3.18. Ramdisk Greater than 4 MB CausesProblemsQuestion:I built a ramdisk image which is bigger than 4 MB. I run into problems when I try to boot Li
14.3.20. Adding Files to Ramdisk is Non PersistentQuetsion:I want to add some files to my ramdisk, but every time I reboot I lose all my changes. What
General setup -> Support for hot-pluggable devices (enable: Y) -> PCMCIA/CardBus support ->PCMCIA/CardBus support (enable: M) -> MPC8XX PC
CONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_15=yWith these options you will see messages like the following when you boot the Linux kernel:...Uniform Mul
Command (? for help): pPartition map (with 512 byte blocks) on '/dev/hda' #: type name length base ( size ) 1: Apple_
Finally, we dedicate all the remaining space to the root partition:Command (? for help): CFirst block: 139328Length in blocks: 1448272Name of partitio
The number of cylinders for this disk is set to 1575.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause
Hex code (type L to list codes): 82Changed system type of partition 3 to 82 (Linux swap)Command (m for help): pDisk /dev/hda: 16 heads, 63 sectors, 15
3.9. ELDK Packages3.9.1. List of ELDT PackagesPackage Name Package Versionautoconf 2.61-8automake 1.10-5bison 2.3-3crosstool-devel 0.43-3dtc 20070802-
14.3.24. Boot-Time Configuration of MTD PartitionsInstead of defining a static partition map as described in section Memory Technology Devices you can
The "address" of the RTC (127.127.43.0 in the example above) is not an IP address, but actually usedas an index into an internal array of s
To configure a root file system on linear cramfs with XIP select: $ cd <xip-linux-root> $ make menuconfig ... File systems --->"
XIP kernel + linear cramfs: pImage: 1395952 cramfs: 1081344 total: used: free: shared: buffers: cached: Mem: 16175104 39
Answer:This is caused by the semantics of the RTS signal as implemented on the SCC controllers: the CPMwill assert this signal when it wants to send o
#/dev/mtd2 0x0000 0x8000 0x20000########################################################################## For LWMON###
bash-2.05b# dd if=/dev/zero of=ext2.img bs=1M count=6666+0 records in66+0 records outbash-2.05b# mkfs.ext2 ext2.imgmke2fs 1.27 (8-Mar-2002)ext2.img is
Answer:In addition to the kernel support, you need to specify the "nfsvers=3" option to use NFS protocolversion 3 as a rootfilesystem. So in
The regular support is coupled to the linux kernel option CONFIG_UNIX98_PTYS and the devptsvirtual filesystem which has to be mounted on the target. T
Created: Sun May 4 13:23:48 2003Image Type: PowerPC Linux RAMDisk Image (gzip compressed)Data Size: 1400121 Bytes = 1367.31 kB = 1.34 MBLoa
bc 1.06-26bind 9.4.1-8.P1binutils 2.17.90-1binutils-devel 2.17.90-1boa 0.94.14-0.5.rc21busybox 1.7.1-2byacc 1.9.20050813-1bzip2 1.0.4-10bzip2-devel 1.
Unmount ramdisk images:As root:bash# umount /mnt/tmpbash# umount /mnt/new6. Compress new ramdisk imagebash$ gzip -v9 new_ramdiskramdisk: 66.6%
A list of supported flash chips (and the needed matching entries for the config file) can be found athttp://www.abatron.ch/fileadmin/user_upload/produ
memory (at least some versions do/did in the past). This exception is stored in some way within the405 and when you step "rfi" it triggers.
(gdb) As you see, initially GDB says the target architecture is "powerpc:403". But the "show arch"command claims it is the "p
15. GlossaryABI- Application Binary InterfaceThe convention for register usage and C linkage commonly used on desktop Power Architecture® machines.Sim
CPM- Communications Processor ModuleThe magic communications co-processor in Motorola PowerQUICC devices. It contains SCCs and SMCs, andperforms SDMA
ELDK- Embedded Linux Development KitA package which contains everything you need to get startet with an Embedded Linux project on yourhardware:cross d
A general purpose DMA engine with relatively limited throughput provided by the microcoded CPM, for usewith external peripherals or memory-to-memory t
PCCardPC Cards are self-contained extension cards especially for laptops and other types of portable computers. Injust about the size of a credit car
and ls to vi), plus some other tools to provide network connectivity, allowing to access the system over theinternet using telnet and FTP services.SIU
5.3. Configuration♦ 5.4. Installation5.4.1. Before You Begin5.4.1.1. Installation Requirements⋅ 5.4.1.2. Board Identification Data⋅ ◊ 5.4.2. Installat
dtc 20070802-1duma 2.5.8-2e2fsprogs 1.39-11e2fsprogs-devel 1.39-11e2fsprogs-libs 1.39-11ethtool 5-1expat 1.95.8-9expat-devel 1.95.8-9file 4.21-1file-l
Generically, this refers to any device capable of implementing a variety of asynchronous serial protocols, suchas RS-232, HDLC and SDLC. In this conte
iproute 2.6.20-2iptables 1.3.8-2iputils 20070202-3iscsitarget 0.4.15-1kbd 1.12-22kernel-headers 2.6.24-1kernel-source 2.6.24-1krb5-devel 1.6.1-2.1krb5
lvm2 2.02.24-1m4 1.4.8-2mailcap 2.1.23-1make 3.81-6MAKEDEV 3.23-1.2man 1.6e-3mdadm 2.6.2-4microwindows 0.91-2microwindows-fonts 0.91-1mingetty 1.07-5.
patch 2.5.4-29.2.2pciutils 2.2.4-3_2pciutils-devel 2.2.4-3_2pcmciautils 014-9_2pcre 7.0-2pcsc-lite 1.3.3-1.0pcsc-lite-devel 1.3.3-1.0pcsc-lite-libs 1.
shadow-utils 4.0.18.1-15slang 2.0.7-17slang-devel 2.0.7-17smartmontools 5.38-2strace 4.5.15-1sysfsutils 2.1.0-1sysklogd 1.4.2-9sysvinit 2.86-17tar 1.1
xinetd 2.3.14-12zip 2.31-3zlib 1.2.3-10zlib-devel 1.2.3-10 Note 1: Not all packages will be installed automatically; for example the boa and thttpd we
Then you may switch to a specific release of the ELDK using the "git-checkout" command; for example, toget the files for ELDK release 4.1, p
build/cross_rpms/<package_name>/SPECS/... SOURCES/... tar
3.10.2. Setting Up ELDK Build EnvironmentFor your convenience, the ELDK build environment CD-ROM provides full ELDK build environment. Allyou need to
files (see below for details). You may specify which sub-steps of the build step are to be performed.The formal syntax for the usage of build.sh is as
5.9.7.1. i2c - I2C sub-system⋅ 5.9.8. Storage devices◊ 5.9.9. Miscellaneous Commands5.9.9.1. date - get/set/reset date & time⋅ 5.9.9.2. echo - ech
3.10.4. Format of the cpkgs.lst and tpkgs.lst FilesEach line of these files has the following format:<sub_step_number> <package_name> <
m4 1.4 SMCm4 m4-1.4-sol26-sparc-local.gzmake(**) 3.79.1 SMCmake make-3.79.1-sol26-sparc-local.gzncurses 5.2 SMCncurs ncurses-5.2-sol26-sparc-local.gzp
4. System SetupSome tools are needed to install and configure U-Boot and Linux on the target system. Also, especially duringdevelopment, you will want
$ cu [email protected] disconnect, type the escape character '~' followed by '.' at the beginning of a line.See also: cu(1), i
4.5. Permission Denied ProblemsThe terminal emulation program must have write access to the serial port and to any locking files that are usedto preve
4.7. Configuration of a BOOTP / DHCP ServerBOOTP resp. DHCP can be used to automatically pass configuration information to the target. The onlything t
This line exports the /opt/eldk-4.1-2007-01-19/ppc_4xx directory with read and write permissions to all hostson the 192.168.0.0 subnet.After modifying
5.9.5.3. loadb - load binary file over serial line (kermit mode)⋅ 5.9.5.4. loads - load S-Record file over serial line⋅ 5.9.5.5. rarpboot- boot image
Official releases of U-Boot are also available through FTP. Compressed tar archives can downloaded fromthe directory ftp://ftp.denx.de/pub/u-boot/. 5.
5.4. Installation5.4.1. Before You Begin5.4.1.1. Installation RequirementsThe following section assumes that flash memory is used as the storage devic
9.8.1. Mount Parameters◊ 9.8.2. Example◊ 10. Debugging10.1. Debugging of U-Boot10.1.1. Debugging of U-Boot Before Relocation◊ 10.1.2. Debugging of U-B
5.4.3. Installation using U-BootIf U-Boot is already installed and running on your board, you can use these instructions to download anotherU-Boot ima
5.5. Tool InstallationU-Boot uses a special image format when loading the Linux kernel or ramdisk or other images. This imagecontains (among other thi
=> help? - alias for 'help'askenv - get environment variables from stdinautoscr - run script from memorybase - print or set add
run - run commands in an environment variablesaveenv - save environment variables to persistent storagesetdcr - Set an AMCC PPC 4xx DCR's va
I2C: readyDTT: 1 is 43 CDTT: 2 is 62 CDRAM: Auto calibration - 512 MB (ECC not enabled, 533 MHz, CL4)FLASH: 16 MBPCI: Bus Dev VenId DevId Cla
5.9. U-Boot Command Line InterfaceThe following section describes the most important commands available in U-Boot. Please note that U-Boot ishighly co
The coninfo command (short: conin) displays information about the available console I/O devices.=> coninList of available devices:serial 80000003
FFD20000 E FFD40000 E FFD60000 E FFD80000 E FFDA0000 E FFDC0000 E FFDE0000 E FFE00000 E FFE20000 E FFE4
'help' prints online help for the monitor commands.Without arguments, it prints a short usage message for all commands.To get detailed help
=> => md 0 c00000000: aaaaaaaa aaaaaaaa 55555555 55555555 ...UUUUUUUU00000010: aaaaaaaa aaaaaaaa 55555555 55555555 ...UUUUUUUU0
14.2.4. U-Boot crashes after relocation to RAM◊ 14.2.5. Warning - bad CRC, using default environment◊ 14.2.6. Net: No ethernet found◊ 14.2.7. Wrong de
=> Like most memory commands the cmp can access the memory in different sizes: as 32 bit (long word), 16 bit(word) or 8 bit (byte) data. If invoked
=> md 10000000100000: f48ea306 54ce7392 f19b0a9e b0fe7392 ...T.s...s.00100010: f1746f6b e70b5467 7214fb92 f1746f6b .tok..Tgr...tok00100
00100008: f19b0a9e ? 012345670010000c: b0fe7392 ? .=> => md 100000 1000100000: 00000000 aabbccdd 01234567 b0fe7392 ...#Eg..s.00100010:
This tests writes to memory, thus modifying the memory contents. It will fail when applied to ROM orflash memory. This command may crash the system w
=> 5.9.2.9. nm - memory modify (constant address)=> help nmnm [.b, .w, .l] address - memory modify, read and keep address=> The nm command
The cp command "knows" about flash memory areas and will automatically invoke the necessary flashprogramming algorithm when the target area
FFF00000 E FFF20000 E FFF40000 E FFF60000 E FFF80000 RO FFFA0000 RO FFFC0000 RO FFFE0000 RO => 5.9.3.3. erase -
.. done=> To erase a whole bank of flash memory you can use a command like this one:=> era bank 1Erase Flash Bank # 1 - Warning: 4 protected sec
Buffer write timeout: 5 ms, buffer size: 32 bytes Sector Start Addresses: FF000000 E FF020000 E FF040000 E FF060000 E FF080000
=> => era ff900000 ff97ffff- Warning: 4 protected sectors will not be erased! doneErased 4 sectors=> => prot off 1:72Un-Protect Flash Se
14.3.26.3. Hints and Notes⋅ 14.3.26.4. Space requirements and RAM saving, an example⋅ 14.3.27. Use SCC UART with Hardware Handshake◊ 14.3.28. How can
U-Boot implements two different approaches to define a MTD partition scheme that can be shared easily withthe linux kernel.The first one is to define
For example, on some target system the mtdparts command might display this information:=> mtdpartsdevice nor0 <TQM5200-0>, # parts = 4 #: nam
defaults:mtdids : nor0=TQM5200-0mtdparts: mtdparts=TQM5200-0:1m(firmware),1536k(kernel),3584k(small-fs),2m(initrd),8m(misc),16m(big-fs)... and combin
Data Size: 158 Bytes = 0.15 kB = 0.00 MBLoad Address: 0x00000000Entry Point: 0x00000000Contents: Image 0: 150 Bytes = 0 kB = 0 MBNow you
The first argument to bootm is the memory address (in RAM, ROM or flash memory) where the image isstored, followed by optional arguments that depend o
5.9.5.2. dhcp - invoke DHCP client to obtain IP/boot params=> help dhcpdhcp => 5.9.5.3. loadb - load binary file over serial line (kermit mode)=
5.9.5.5. rarpboot- boot image via network using RARP/TFTPprotocol=> help rarprarpboot [loadAddress] [bootfilename]=> 5.9.5.6. tftpboot- boot ima
update=protect off fffc0000 ffffffff;era fffc0000 ffffffff;cp.b ${fileaddr} fffc0000 ${filesize};setenv filesize;saveenvupd=run load;run updatekozio=b
5.9.6.3. setenv - set environment variables=> help setenvsetenv name value ... - set environment variable 'name' to 'value ...&ap
setenv name=valueinstead ofsetenv name valueThere will be no error message, which lets you believe everything went OK, but it didn't: instead of
First, we describe how to install the Cross Development Tools Embedded Linux Development Kit which youprobably need - at least when you use a standard
5.9.6.5. bootd - boot default, i.e., run 'bootcmd'=> help bootboot - No help available.=> The bootd (short: boot) executes the default
5.9.9. Miscellaneous Commands5.9.9.1. date - get/set/reset date & time=> help datedate [MMDDhhmm[[CC]YY][.ss]]date reset - without arguments:
The sleep command pauses execution for the number of seconds given as the argument:=> date ; sleep 5 ; dateDate: 1900-04-23 (Thursday) Time: 6:
bootcmd: This variable defines a command string that is automatically executed when the initialcountdown is not interrupted.This command is only execu
mtdparts: This variable (usually defined using the mtdparts command) allows to share a commonMTD partition scheme between U-Boot and the Linux kernel.
echo ===== U-Boot settings =====setenv u-boot /tftpboot/TQM860L/u-boot.binsetenv u-boot_addr 40000000setenv load_u-boot 'tftp ${loadaddr} ${u-boo
Erasing Flash... doneErased 1 sectorsWriting to Flash... doneProtected 1 sectorsProtected 1 sectors=> Hint: maximum flexibility can be achieved i
argv[0] = "40000"argv[1] = "This"argv[2] = "is"argv[3] = "another"argv[4] = "test."argv[5] = "&
Some processors have data and/or instruction caches. For some of these processors (e.g. MPC85xx), theoperation of the cache(s) must be considered when
5.12.4. Running on core other than core 0For Freescale PowerPC-based multi-core system, the following can be said.U-Boot facilities are not available
document should not be regarded as affecting the validity of any trademark or service mark. Naming ofparticular products or brands should not be seen
5.14.1. Boot Count LimitThe Open Source Development Labs Carrier Grade Linux Requirements Definition version 2.0(http://www.osdl.org/docs/carrier_grad
6.2. Kernel Configuration and CompilationThe katmai board is fully supported by DENX Software Engineering. This means that you will always be ableto b
6.3. InstallationFor now it is sufficient to copy the Linux kernel image into the directory used by your TFTP server:bash$ cp arch/ppc/boot/images/uIm
Please see also the files Documentation/initrd.txt and Documentation/nfsroot.txt in yourLinux kernel source directory for more information about which
=> setenv addip 'setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off'=> setenv ram_root &apo
See Documentation/nfsroot.txt in you Linux kernel source directory for more information about theseparameters and other options.7.4.1. Bootlog of tftp
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550Aserial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550Aserial8250: ttyS2 at MMIO 0x0 (irq = 37) is a 16
Mounting NFS filesystems: [ OK ]Mounting other filesystems: [ OK ]Starting xinetd: [ OK ]DENX ELDK version 4.1 build 2007-01-19Linux 2.6.21.3-
From this output you can see the total amount of flash memory, and how it is divided in blocks (Erase Unitsor Sectors). The RO markers show blocks of
Verifying Checksum ... OK=> => saveenvSaving Environment to Flash...Un-Protected 1 sectorsUn-Protected 1 sectorsErasing Flash... doneErased
3.5.1. Product Packaging◊ 3.5.2. Downloading the ELDK◊ 3.5.3. Initial Installation◊ 3.5.4. Installation and Removal of Individual Packages◊ 3.5.5. Rem
PCIE:0 successfully set as rootpointvendor-id 0xaaa0device-id 0xbed0AMCC PowerPC 440SPe Katmai PlatformZone PFN ranges: DMA 0 -> 131
TCP cubic registeredNET: Registered protocol family 1NET: Registered protocol family 17ds1307 1-0068: setting the system clock to 2000-04-23 06:17:58
Entry Point: 00000000 Verifying Checksum ... OK=> => cp.b ${ram_ws} ${ramdisk_addr} ${filesize}Copy to Flash... done=> => imi ${ra
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)Memory: 515328k available (1948k kernel code, 616k data, 156k init, 0k highmem)Mount-cac
root:~> 8. Building and Using ModulesThis section still needs to be written (this is a wiki, so please feel free to contribute!).In the meantime, p
CONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_ROM=yCONFIG_MTD_katmai=y Note: this configuration uses CFI conformant AMD flash chips; you may need to adjust these
mtd0: 00180000 00020000 "kernel"mtd1: 00200000 00020000 "root"mtd2: 00c00000 00020000 "user"mtd3: 00040000 00020000 &quo
If the flash device is erased, we can simply mount it, and the creation of the JFFS filesystem is performedautomagically. Note: For simple accesses li
# >filebash: file: No space left on device# mv file foomv: cannot create regular file `foo': No space left on deviceYou will have to use rm to
Everything: 24 kilobytes$ ls -l test.cramfs.img-rw-r--r-- 1 wd users 24576 Nov 10 23:44 test.cramfs.imgAs you can see, the CramFs image
Comments to this Manuals