PythonQ 248-8XX Spezifikationen

Stöbern Sie online oder laden Sie Spezifikationen nach Schweißsystem PythonQ 248-8XX herunter. PythonQ 248-8XX Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 210
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
The DENX U-Boot and Linux Guide (DULG) for
m28
Table of contents:
1. Abstract
2. Introduction
2.1. Copyright
2.2. Disclaimer
2.3. Availability
2.4. Credits
2.5. Translations
2.6. Feedback
2.7. Conventions
3. Embedded Linux Development Kit
3.1. ELDK Availability
3.2. ELDK Getting Help
3.3. Supported Host Systems
3.4. Supported Target Architectures
3.5. Installation
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. Removal of the Entire Installation
3.6. Working with ELDK
3.6.1. Switching Between Multiple Installations
3.7. Mounting Target Components via NFS
3.8. Rebuilding ELDK Components
3.8.1. ELDK Source Distribution
3.8.2. Rebuilding Target Packages
3.8.3. Rebuilding ELDT Packages
3.9. ELDK Packages
3.9.1. List of ELDT Packages
3.9.2. List of Target Packages
3.10. Rebuilding the ELDK from Scratch
3.10.1. ELDK Build Process Overview
3.10.2. Setting Up ELDK Build Environment
3.10.3. build.sh Usage
3.10.4. Format of the cpkgs.lst and tpkgs.lst Files
4. System Setup
4.1. Serial Console Access
4.2. Configuring the "cu" command
4.3. Configuring the "kermit" command
4.4. Using the "minicom" program
4.5. Permission Denied Problems
4.6. Configuration of a TFTP Server
4.7. Configuration of a BOOTP / DHCP Server
4.8. Configuring a NFS Server
5. Das U-Boot
5.1. Current Versions
5.2. Unpacking the Source Code
5.3. Configuration
The DENX U-Boot and Linux Guide (DULG) for m28 1
Seitenansicht 0
1 2 3 4 5 6 ... 209 210

Inhaltsverzeichnis

Seite 1

The DENX U-Boot and Linux Guide (DULG) form28Table of contents:1. Abstract• 2. Introduction2.1. Copyright♦ 2.2. Disclaimer♦ 2.3. Availability♦ 2.4. C

Seite 2

3.1. ELDK AvailabilityThe ELDK is availableon DVD-ROM from DENX Computer Systems• for download on the following server:FTP HTTPftp://ftp.denx.de/pub/e

Seite 3

# >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

Seite 4

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

Seite 5

9.1.5.2. Using UBI on NAND Flash:Erase the flash partition:root@generic-armv5te:~# flash_erase -q /dev/mtd4 0 0root@generic-armv5te:~#and attach it to

Seite 6 - 1. Abstract

Present UBI devices: ubi0ubi0Volumes count: 1Logical eraseblock size: 126976 bytes, 124.0 KiBTota

Seite 7 - 2. Introduction

Sub-page size: 2048 bytesOOB size: 64 bytesCharacter device major/minor: 90:8Bad blocks are allowed:

Seite 8

[ 161.550000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048[ 161.550000] UBI: VID header offset: 2048 (aligned 2048), data offset: 40

Seite 9

[marex@pollux]$Note that for the NAND device we must pass the "-s 2048" option to ubinize; if we don't, an attempt to attachthe created

Seite 10 - 3.3. Supported Host Systems

Everything in tmpfs is temporary in the sense that no files will be created on any device. If you unmount atmpfs instance, everything stored therein i

Seite 11 - 3.5.2. Downloading the ELDK

read-only ramdisk:#!/bin/sh...# Won't work on read-only root: mkdir /tmpfsmount -t tmpfs tmpfs /tmpfsmkdir /tmpfs/tmp /tmpfs/var# Won't work

Seite 12 - 3.5.3. Initial Installation

root@generic-armv5te:/tmp/duts# mount -t vfat /dev/mmcblk0p2 /tmp/duts/mmcroot@generic-armv5te:/tmp/duts# mountrootfs on / type rootfs (rw)192.168.1.1

Seite 13 - Packages

3.4. Supported Target ArchitecturesThe ELDK for ARM systems supports processors complying with the ARM architecture version 2 to 6. Thisincludes ARM7,

Seite 14 - 3.6. Working with ELDK

-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-2.bmp-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-3.bmp-rwxr-xr-x 1 root root 1152054 Feb 8 2

Seite 15 - $ arm-linux-gcc -c myfile.c

We recommend to store settings of brightness and contrast in U-Boot environment variables thatcan be shared between U-Boot and Linux. This way it is

Seite 16

Instead, we create a separate tarball which contains only the device entries so we can use them whennecessary (with cramfs):bash# tar -zcf /tmp/device

Seite 17

/dev/hda b 640 0 0 3 1 1 1 16/dev/kmem c 640 0 0 1 2 - - -/de

Seite 18 - 3.9. ELDK Packages

We now have a root file system image uRamdisk that can be used with U-Boot. 9.5.2. Root File System on a JFFS2 File SystemJFFS2 (Journalling Flash Fil

Seite 19

When booting the Linux kernel prints the following messages showing the default partition map which is usedfor the flash memory on the TQM8xxL boards:

Seite 20

Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OKLinux version 2.4.25 (wd@xpert) (gcc version 3.3.3 (DENX ELDK

Seite 21

Many tools require some storage place in a filesystem, so we must provide at least one (small)writable filesystem. For all data which may be lost when

Seite 22

a 10 b 11 c 12 d 13 e 14 f 15 __EOD__ chmod 0666 /tmpfs/dev/*3. We can now create a cramfs file system image using the mkcramfs tool

Seite 23

$ mkdir rootfs$ cd rootfs$ tar -zxf /tmp/rootfs.tar.gzLike with the cramfs root file system, we use "tmpfs" for cases where a writable file

Seite 24

You can either download the ready-to-burn ISO-images from one of the mirror sites (see 3.1. ELDKAvailability), or you can download the individual file

Seite 25

d 13 e 14 f 15 __EOD__ chmod 0666 /tmpfs/dev/*Like we did for the ramdisk, we now create an ext2 file system image using the genext2fs tool:$

Seite 26

################################################################# #################################################################

Seite 27

Here is one possible solution: Your software distribution consistes of two files: The first file is the Linuxkernel with a minimal ramdisk image attac

Seite 28 - 3.10.3. build.sh Usage

$ genext2fs -U \ -d ${INITRD_DIR} \ -D ${INITRD_DEVICES} \ -b ${INITRD_SIZE} \ -r ${INITRD_FREE} \ -i ${INITRD_INOD

Seite 29

The first line says that it's a script file for the /bin/nash interpreter. Note: even if this file looks like a shell script it is NOT interprete

Seite 30 - 4. System Setup

Board: TQM860LDB0A3-T50.202DRAM: 16 MBFLASH: 8 MBIn: serialOut: serialErr: serialNet: SCC ETHERNET, FEC ETHERNET [PRIME]PCMCIA: 3.3V card f

Seite 31

9.6. Root File System SelectionNow we know several options for file systems we can use, and know how to create the corresponding images.But how can we

Seite 32

What it is good for?In embedded systems the main use of mini_fo is to overlay the root file system. This means it is mountedon top of the regular roo

Seite 33

This is easy. Let's assume "/" is the read-only root file system and /dev/mtdblock5 contains a small JFFS2flash partition that shall be

Seite 34 - 4.8. Configuring a NFS Server

Reading from files, creating new files, modifying already modified filesThese operations are passed directly through to the lower native layer, and on

Seite 35

The initial installation is performed using the install utility located in the root of the ELDK ISO imagedirectory tree. The install utility has the f

Seite 36 - 5.1. Current Versions

10. Debugging10.1. Debugging of U-Boot10.1.1. Debugging of U-Boot Before Relocation◊ 10.1.2. Debugging of U-Boot After Relocation◊ ♦ 10.2. Linux Kerne

Seite 37 - 5.3. Configuration

136 asm volatile(" bl 0f" ::: "lr");(gdb) s137 asm volatile("0: mflr 3&qu

Seite 38 - 5.4.1. Before You Begin

10.2.1. Linux Kernel and Statically Linked Device Drivers10.2.2. Dynamically Loaded Device Drivers (Modules)First start GDB in the root directory of y

Seite 39 - 5.6. Initialization

Now you can list the source code of the module, set break points or inspect variables as usual:(gdb) l fun61 static RT_TASK *thread;6263 sta

Seite 40 - 5.7. Initial Steps

(gdb) cContinuing.Breakpoint 1, fun (t=0x1) at ex_sw.c:6969 cpu_used[hard_cpu_id()]++;(gdb) p/d loops$2 = 999986939(gdb) p t$3 =

Seite 41 - 5.8. The First Power-On

`add_sect .data`\ `add_sect .sdata`\ `add_sect .bss`\ `add_sect .sbss`\"echo "add-symbol-file $1 $ARGS" > ~/add-symbol-file.gdb10.4

Seite 42 - 5.9.1. Information Commands

10.5.2. Remote Debugginggdbserver allows you to connect your program with a remote GDB using the "target remote" command.On the target machi

Seite 43

It is convenient to use DDD, a Graphical User Interface to GDB, for debugging as it allows to define andexecute frequently used commands via buttons.

Seite 44 - 5.9.2. Memory Commands

12.2.2. Linux kernelBooksKarim Yaghmour, Jon Masters, Gilad Ben-Yossef, Philippe Gerum: "Building Embedded LinuxSystems 2nd edition",Paperba

Seite 45 - 5.9.2.3. cmp - memory compare

David R. Butenhof: "Programming with POSIX Threads", Addision Wesley, ISBN 0-201-63392-2.• Bradford Nichols, Dick Buttlar and Jacqueline Pro

Seite 46 - 5.9.2.5. md - memory display

To install a package, use the following command:bash$ ${CROSS_COMPILE}rpm -i <package_file_name>To update a package, use the following command:b

Seite 47

Gary R. Wright, W. Richard Stevens: "TCP/IP Illustrated, Volume 2 - The Implementation",Addision Wesley, ISBN 0-201-63354-X• W. Richard Stev

Seite 48

12.2.9. Power Architecture® ProgrammingBooksProgramming Environments Manual for 32-Bit Implementations of the PowerPC architecture:http://www.freescal

Seite 49

12.3. Mailing ListsThese are some mailing lists of interest. If you are new to mailing lists then please take the time to read atleast RFC 1855.linux-

Seite 50 - 5.9.3. Flash Memory Commands

Miscalleneous or unsorted material:BDI2000 List of supported Flash Memories: This document not only lists the currently supportedflash chips, but also

Seite 51

label = "bootloader"; reg = <0x00000000 0x00300000>;

Seite 52

0x30d3 /* MX28_PAD_AUART3_TX__GPIO_3_13 */ >;

Seite 53

eeprom: eeprom@51 { compatible = "atmel,24c128";

Seite 54 - 5.9.3.6. UBI Usage in U-Boot

regulators { compatible = "simple-bus"; reg_3p3v: 3p3v { compatible = "reg

Seite 55

BREAKMODE HARD ;SOFT or HARD, ARM / Thumb break codeSCANSUCC 0 0 ; 1 4 when the ETMBUF after the ARM926 core is en

Seite 56

14.3. Linux14.3.1. Linux crashes randomly◊ 14.3.2. Linux crashes when uncompressing the kernel◊ 14.3.3. Linux Post Mortem Analysis◊ 14.3.4. Linux kern

Seite 57

The trailing '-' character in the CROSS_COMPILE variable value is optional and has no effect onthe cross tools behavior. However, it is req

Seite 58 - Useful definitions:

14. FAQ - Frequently Asked QuestionsThis is a collection of questions which came up repeatedly. Give me more feedback and I will add more stuffhere.Th

Seite 59

# cd <elkd_install_dir># brandelf -t Linux ./install Note: The following workaround might be a good alternative for the tedious copying ofthe in

Seite 60

I try to install the ELDK on a Linux PC, and the installation hangs. It starts fine, but then it freezeslike this:...Preparing... #####

Seite 61 - 5.9.5. Download Commands

$ df -h /home/wd/.gvfsFilesystem Size Used Avail Use% Mounted ongvfs-fuse-daemon 0 0 0 - /home/wd/.gvfs$ sudo df -h /ho

Seite 62

-#[ "$state" != "rw" -a "$READONLY" != "yes" ] && \-# action $"Remounting root filesystem in rea

Seite 63

14.1.7. ELDK Include Files MissingQuestion:After configuring and compiling a Linux kernel in the kernel source tree that comes with the ELDK, Icannot

Seite 64

SPE, but there are no special FP registers available as on a normal FPU, so General Purpose Registersmust be used for passing of FP operands. While th

Seite 65

.globl foo .type foo, @functionfoo: stwu 1,-48(1) mflr 0 stw 24,16(1) stw 25,20(1) stw 26,24(1)

Seite 66

evmergelo 9,5,6 efdadd 11,0,9 efdmul 0,0,9 efddiv 11,11,0 evstdd 11,24(1) evmergehi 9,11,11 mr 10,11

Seite 67

# dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_keyWill output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'Gener

Seite 68

/opt/eldk/arm Before the NFS-mounted root file system can work, you must create necessary device nodes in the<ELDK_root>/<target_cpu_variant&

Seite 69

99% or more of all errors are located when you port U-Boot to a new hardware. In the result, yourRAM image may work, but in the end you will need a fu

Seite 70

Alternatively, the tool chain could provide a separate version of libgcc.a built with old ABI. Thiscould be done using the multilib approach. The adva

Seite 71

Why?Answer:Most probably everything is OK. The message is printed because the flash sector or ERPROMcontaining the environment variables has never bee

Seite 72 - 5.9.8. Special Commands

"add-symbol-file u-boot _offset_" for code after relocation.14.2.8. Decoding U-Boot Crash DumpsWhen you are porting U-Boot to new hardware,

Seite 73

14.2.9. Porting Problem: cannot move locationcounter backwardsQuestion:I'm trying to port U-Boot to a new board and the linker throws an error me

Seite 74 - 5.9.9.1. MMC devices 74

Where can the image size be altered from?Answer:Some processors have a fixed reset vector address at 0xFFFFFFFC, so the U-Boot image has toinclude tha

Seite 75 - 5.9.9.1. MMC devices 75

variables, too.Question:I have configured a MAC address of 01:02:03:04:05:06, and I can see that an ARP packet is sent byU-Boot, and that an ARP reply

Seite 76 - 5.9.9.2. NAND devices

14.2.15. Why do I get TFTP timeouts?Question 1:: When trying to download a file from the TFTP server I always get timeouts like these:...Loading: ####

Seite 77

If this doesn't work, fix your TFTP server configuration and make sure it is running.(2) If your TFTP server is working, run ethereal (or equival

Seite 78

the autonegotiation <-> fixed configuration case because the odds of it working properly are poor anyway.Rule:Always try to set up your PHY for

Seite 79

After an ELDK source RPM is installed using the above command, its spec file and sources can be found inthe subdirectories of the <ELDK_root>/us

Seite 80

setenv bootcmd bootm \$address setenv addip 'setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:

Seite 81

14.2.17.4. General rulesIf a command line (or an environment variable executed by a run command) contains severalcommands separated by semicolons, and

Seite 82

This installs a lot of kernel modules in "./lib/modules/" and a kernel ELF file in "./boot" :$ ls -l boottotal 8792-rw-r--r-- 1 ro

Seite 83

Question:I am using U-Boot with a Linux kernel version Y (Y < 2.4.5-pre5), but the last message I see isUncompressing Kernel Image ... OKThen the s

Seite 84 - 5.14.1. Boot Count Limit

Answer:This depends mainly on how you intend to distribute your software updates, and which physicalinterfaces are present (or usable for this purpose

Seite 85

Image Name: Linux-2.4.25Image Type: PowerPC Linux Kernel Image (gzip compressed)Data Size: 1003065 Bytes = 979.6 kBLoad Address: 00000000Entry Point:

Seite 86 - 6.3. Installation

14.3.4. Linux kernel register usageFor the Power Architecture® architecture, the Linux kernel uses the following registers:R1:stack pointerR2:pointer

Seite 87 - 7.1. Introduction

MACHINE_ENDThe machine descriptor macros for your machine will be located in a similar file in your kernel sourcetree. Having located your machine des

Seite 88 - 7.4. Boot Arguments Unleashed

Normally, the file "etc/ld.so.cache" contains a compiled list of system libraries. This file isused by the dynamic linker/loader ld.so to ca

Seite 89

We use the SELF ramdisk image that comes with the ELDK. When we try to mount a filesystem overNFS from the server, for example:# mount -t nfs 192.168.

Seite 90

3.9. ELDK Packages3.9.1. List of ELDT PackagesPackage NamePackageVersionautoconf 2.61-8automake 1.10-5bison 2.3-3crosstool-devel 0.43-3dtc 20070802-1e

Seite 91

parse the U-Boot environment directly• pass it via the command line• If your device driver does not support one of these sources directly, then do it

Seite 92

... console=tty0 console=ttyS0,${baudrate} ...This will ensure that the boot messages are displayed on both the framebuffer (/dev/tty0) and the serial

Seite 93

boot. " - Benjamin Herrenschmidt14.3.17. Linux Kernel crashes when using aramdisk imageQuestion:I have a Power Architecture® board with 1 GiB of

Seite 94

CONFIG_BLK_DEV_RAM_SIZE parameter so that it contains a number equal or larger thanyour ramdisk (in kB). (In the 2.4 kernel series, you'll find t

Seite 95

The following kernel configuration options are required to support miscellaneous PCMCIA card typeswith Linux and the PCMCIA CS package:PCMCIA IDE card

Seite 96 - 8. Building and Using Modules

For "disk" type PC Cards (FlashDisks, CompactFlash, Hard Disk Adapters - basically anything that looks likean ordinary IDE drive), an altern

Seite 97 - 9.1. Flash Filesystems

systems around.To format your "disk" drive with a MacOS partition table you can use the pdisk command:We start printing the help menu, re-in

Seite 98

First block: 4160Length in blocks: 4096Name of partition: boot1Type of partition: PPCBootCommand (? for help): pPartition map (with 512 byte blocks) o

Seite 99 - 9.1.3. Second Version of JFFS

# mke2fs /dev/hda5mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)9

Seite 100

Last cylinder or +size or +sizeM or +sizeK (1-1575, default 1575): +2MCommand (m for help): pDisk /dev/hda: 16 heads, 63 sectors, 1575 cylindersUnits

Seite 101 - 9.1.5.1. Create Device Files

bash 3.2-9bc 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-10bzip

Seite 102

The partition table has been altered!Calling ioctl() to re-read partition table. hda: hda1 hda2 hda3 hda4 hda: hda1 hda2 hda3 hda4WARNING: If you have

Seite 103

14.3.25. Use NTP to synchronize system timeagainst RTCIf a system has a real-time clock (RTC) this is often used only to initialize the system time wh

Seite 104

CONFIG_XIP_PHYS_ADDR = FLASH-base-address + offset-in-FLASH CONFIG_XIP_VIRT_ADDR = 0xc0000000 + DRAM-size + offset-in-FLASHThe default configuratio

Seite 105

Be aware that cramfs is a read-only filesystem.14.3.26.3. Hints and NotesXIP conserves RAM at the expense of flash. This might be useful if you have a

Seite 106

I am using a SCC port of a MPC8xx / MPC82xx as UART; for the Linux UART driver I haveconfigured support for hardware handshake. Then I used a null-mod

Seite 107 - 9.2.1. Mount Parameters

For building against older versions of the MTD headers (meaning before v2.6.8-rc1) it is required to pass theargument "MTD_VERSION=old" to m

Seite 108

# rm -f random # ln -s urandom randomSolution:The correct solution for the problem is of course to feed sufficient entropy into /dev/random. Todo

Seite 109

bash-2.05b# free total used free shared buffers cachedMem: 14556 14260 296 0 77

Seite 110

14.3.33. Telnet / SSH (dropbear) server not workingQuestion:The telnet server is running on the target but when I try to login I get this error messag

Seite 111

Extract compressed ramdisk image (ramdisk.gz)bash$ dd if=uRamdisk bs=64 skip=1 of=ramdisk.gz21876+1 records in21876+1 records out1. Uncompress ramdisk

Seite 112

5.4. Installation5.4.1. Before You Begin5.4.1.1. Installation Requirements⋅ 5.4.1.2. Board Identification Data⋅ ◊ 5.4.2. Installation Using a BDM/JTAG

Seite 113

dropbear 0.50-1dtc 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-9fi

Seite 114 - $ mkfs.jffs2 -U \

Uncompress ramdisk imagebash$ gunzip -v ramdisk.gzramdisk.gz: 66.6% -- replaced with ramdisk2. Mount ramdisk imageAs root:bash# mkdir -p /mnt/tmp

Seite 115 - => printenv addip

When I try to compile my LInux kernel after applying the RTAI patch, I get a strange "asm-specifierfor variable `__sc_3' conflicts with asm

Seite 116 - /proc on /proc type proc (rw)

Conclusion:You cannot debug Linux exception entry and exit code. Because of speed, DataStoreTLBMiss doesnot even make use of EXCEPTION_PROLOG, and SRR

Seite 117

14.6.5. Remote 'g' packet reply is too longQuestion:I'm trying to debug U-Boot for a PPC4xx processor, but I get the following error:(g

Seite 118

14.7.1. LITE5200 Installation HowtoA nice "Application Note: Installing Embedded Linux on the Motorola MPC5200 Lite Evaluation Board"which c

Seite 119

BDM- Background Debug ModeAn on-chip debug interface supported by a special hardware port on some processors. It allows to take fullcontrol over the C

Seite 120

DHCP- Dynamic Host Configuration ProtocolA network protocol which can be used to inquire a server about information for the intended systemconfigurati

Seite 121 - FAT File System

GPL/ LGPL - GNU General Public License/Lesser General Public LicenseThe full license text can be found at http://www.gnu.org/copyleft/gpl.html.The lic

Seite 122

MII- Media Independent InterfaceThe IEEE Ethernet standard control interface used to communicate between the Ethernet controller (MAC)and the external

Seite 123

RTOS- Real-Time Operating SystemSCC- Serial Communications ControllerThe high performance module(s) within the CPM which implement the lowest layer of

Seite 124

initscripts 8.54.1-1iproute 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

Seite 125

Motorola S-records are an industry-standard format for transmitting binary files to target systems and PROMprogrammers.See also: http://pmon.groupbsd.

Seite 126 - 9.7. Overlay File Systems

ltp 20080131-eldk2lvm2 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

Seite 127 - Examples

passwd 0.74-3patch 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

Seite 128 - Performance overhead

setup 2.6.4-1_2shadow-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

Seite 129 - 9.8.2. Example

xenomai 2.4.2-1xinetd 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 bo

Seite 130 - 10.1. Debugging of U-Boot

SRPMS Fedora 7 sourcesThen you may switch to a specific release of the ELDK using the "git-checkout" command; for example, toget the files f

Seite 131 - 10.2. Linux Kernel Debugging

<some_directory>/ build/cross_rpms/<package_name>/SPECS/... SOURCES/...

Seite 132

3.10.2. Setting Up ELDK Build EnvironmentFor your convenience, the ELDK build environment CD-ROM provides full ELDK build environment. Allyou need to

Seite 133

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

Seite 134

5.9.7.3. fdt print - recursive print⋅ 5.9.7.4. fdt mknode - create new nodes⋅ 5.9.7.5. fdt set - set node properties⋅ 5.9.7.6. fdt rm - remove nodes o

Seite 135 - 10.5. Application Debugging

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> <

Seite 136 - 10.5.2. Remote Debugging

4.2. Configuring the "cu" commandThe cu command is part of the UUCP package and can be used to act as a dial-in terminal. It can also dosimp

Seite 137 - 12.2. Further Reading

~/.kermrc:• set line /dev/ttyS0set speed 115200set carrier-watch offset handshake noneset flow-control nonerobustset file type binset file name litset

Seite 138 - Articles

4.6. Configuration of a TFTP ServerThe fastest way to use U-Boot to load a Linux kernel or an application image is file transfer over Ethernet. Forthi

Seite 139 - 12.2.4. Network Programming

option domain-name-servers ns.local.net; host trgt { hardware ethernet 00:30:BF:01:02:D0; fixed-addres

Seite 140

5.4.2. Installation Using a BDM/JTAG Debugger◊ 5.4.3. Installation using U-Boot◊ 5.5. Tool Installation♦ 5.6. Initialization♦ 5.7. Initial Steps♦ 5.8.

Seite 141 - 12.2.10. Embedded Topics

5.9.7.7. fdt move - move FDT blob to new address⋅ 5.9.7.8. fdt chosen - fixup dynamic info⋅ 5.9.8. Special Commands5.9.8.1. i2c - I2C sub-system⋅ ◊ 5.

Seite 142 - 12.4. Links

5.2. Unpacking the Source CodeIf you use GIT to get a copy of the U-Boot sources, here an example how you get the sources with git:Note: Included topi

Seite 143 - 13. Appendix

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

Seite 144 - 13.1. Flat Device Tree 144

update=echo done=> setenv u-boot /tftpboot/duts/m28/u-boot.bin=> run load updateif mmc rescan ; then if tftp ${update_sd_firmware_filename} ; th

Seite 145 - 13.1. Flat Device Tree 145

9.1.5.3.1. Determining the Parameters of the used Flash Types:• 9.1.5.3.2. Create some Test File System Hierarchy• 9.1.5.3.3. Installing UBIFS images

Seite 146 - 13.1. Flat Device Tree 146

The default configuration of the console port on the m28 board uses a baudrate of 115200/8N1 (115200 bps, 8Bit per character, no parity, 1 stop bit, n

Seite 147

- print values of all environment variablesprintenv name ... - print value of environment variable 'name'tftpboot - boot image via ne

Seite 148

=> printenv serial# ethaddrserial#=DUTSethaddr=C0:E5:4E:02:00:00=>Please double check that the printed values are correct! You will not be able

Seite 149

-> size = 0x10000000ethaddr = C0:E5:4E:02:00:00ip_addr = 192.168.20.33baudrate = 115200 bpsTLB addr = 0x4FFF0000relocaddr = 0x4

Seite 150

iminfo (short: imi) is used to print the header information for images like Linux kernels or ramdisks. Itprints (among other information) the image na

Seite 151 - ELDK Installation Hangs

=>You can use the base command (short: ba) to print or set a "base address" that is used as address offset forall memory commands; the de

Seite 152

43000010: 00800040 00800040 9de1110f 00020205 @[email protected]: 756e694c 2e332d78 2d302e36 7478656e Linux-3.6.0-next=>Like most memor

Seite 153

42000020: 756e694c 2e332d78 2d302e36 7478656e Linux-3.6.0-next=>42000030: 3130322d 30303132 30302d31 2d343130 -20121001-00014-42000040: e1a00

Seite 154

42000010: 00800040 00800040 9de1110f 00020205 @[email protected]: 756e694c 2e332d78 2d302e36 7478656e Linux-3.6.0-next42000030: 3130322d 3

Seite 155

42000010: ffffffea ffffffe9 ffffffe8 ffffffe7 ...42000020: ffffffe6 ffffffe5 ffffffe4 ffffffe3 ...42000030: ffffffe2 f

Seite 156

13.1. Flat Device Tree♦ 13.2. BDI2000 Configuration file♦ 14. FAQ - Frequently Asked Questions14.1. ELDK14.1.1. ELDK Installation under FreeBSD◊ 14.1.

Seite 157

5.9.2.10. loop - infinite loop on address range=> help looploop - infinite loop on address rangeUsage:loop [.b, .w, .l] address number_of_objects=&

Seite 158 - 14.1.11. Enable SSH Access

5.9.3.3. erase - erase FLASH memoryNote: Included topic DULGData_m28.UBootEraseHelp does not exist yetThe erase command (short: era) is used to erase

Seite 159 - 14.2. U-Boot

The protect command is another complex one. It is used to set certain parts of the flash memory toread-only mode or to make them writable again. Flash

Seite 160 - -mrelocatable

this command uses three environment variables:'partition' - keeps current partition identifierpartition := <part-id><part-id>

Seite 161

=> mtdpartsdevice nand0 <gpmi-nand>, # parts = 3 #: name size offset mask_flags 0: bootloader 0x0

Seite 162

device nand0 <gpmi-nand>, # parts = 5 #: name size offset mask_flags 0: bootloader 0x00300000 0

Seite 163

UBI: available PEBs: 1961UBI: total number of reserved PEBs: 23UBI: number of PEBs reserved for bad PEB handling: 19UBI: max/mean erase co

Seite 164 - Compiler

42000020: 00000800 0001f000 0000000e 000007c0 ...42000030: 00800000 00000000 00000005 00000002 ...42000040: 00000001 0

Seite 165 - 14.2.12. Erasing Flash Fails

UBI: number of internal volumes: 1UBI: number of user volumes: 1UBI: available PEBs: 0UBI: total number of reserved PEBs: 1984UBI: num

Seite 166 - $ tools/gen_eth_addr

With the source command you can run "shell" scripts under U-Boot: You create a U-Boot script image bysimply writing the commands you want to

Seite 167

14.3.12. Loopback interface does not work◊ 14.3.13. Linux kernel messages are not printed on the console◊ 14.3.14. Linux ignores input when using the

Seite 168

5.9.4.2. bootm - boot application image from memory=> help bootmbootm - boot application image from memoryUsage:bootm [addr [arg ...]] - boot ap

Seite 169 - 14.2.17.2. Hush shell

5.9.4.3. go - start application at address 'addr'=> help gogo - start application at address 'addr'Usage:go addr [arg ...] -

Seite 170 - 14.2.17.3. Hush shell scripts

=> loadb 100000## Ready for binary (kermit) download ...Ctrl-\c(Back at denx.denx.de)----------------------------------------------------C-Kermit 7

Seite 171 - 14.2.17.4. General rules

- print values of all environment variablesprintenv name ... - print value of environment variable 'name'=>The printenv command pr

Seite 172

net_nfs=run fdt_netload kernel_netload nfsargs addip addcons addmtd addmisc;bootm ${kernel_addr_r} - ${fdt_addr_r}net_nfs_nodt=run kernel_netload nfsa

Seite 173 - => setenv clocks_in_mhz

To modify the U-Boot environment you have to use the setenv command. When called with exactly oneargument, it will delete any variable of that name fr

Seite 174

run var [...] - run the commands in the environment variable(s) 'var'=>You can use U-Boot environment variables to store commands and

Seite 175

fdt addr <addr> [<length>] - Set the fdt location to <addr>fdt move <fdt> <newaddr> <length> - Copy the

Seite 176

=> fdt print /cpuscpus { cpu@0 { compatible = "arm,arm926ejs"; };};=>5.9.7.4. fdt mknode - create new nod

Seite 177

testnode {};=>5.9.7.5. fdt set - set node propertiesNow, let's create a property at the newly created node; again we'll use fdt list for

Seite 178 - Rebooting in 1 seconds

2. Introduction2.1. Copyright♦ 2.2. Disclaimer♦ 2.3. Availability♦ 2.4. Credits♦ 2.5. Translations♦ 2.6. Feedback♦ 2.7. Conventions♦ • 2. Introduction

Seite 179

interrupt-parent = <0x1>; model = "DENX M28EVK"; compatible = "denx,m28evk", "fsl,imx28";

Seite 180

regulators { }; sound { };};=>5.9.7.8. fdt chosen - fixup dynamic infoOne of the modifications made by U-Boot to the b

Seite 181 - # cat /etc/init_tty

=> fdt list /chosenchosen {};=>Note: fdt boardsetup performs board-specific blob updates, most commonly setting clock frequencies,etc. Discoveri

Seite 182

MXS MMC: 0=>With the mmc rescan command you can rescan the actual mmc device.=> mmc rescan=>The mmcinfo command displays the information abou

Seite 183 - Multi-File Image

=> md 0x4300000043000000: 00000000 00000000 00000000 00000000 ...43000010: 00000000 00000000 00000000 00000000 ...4

Seite 184

MMC write: dev # 0, block # 583, count 16 ... 16 blocks write: OK=> mmc read 0x42000000 247 10MMC read: dev # 0, block # 583, count 16 ... 16 block

Seite 185

420000c0: 00000000 00000000 00000000 00000000 ...420000d0: 00000000 00000000 00000000 00000000 ...420000e0: 00000000 0

Seite 186

NAND erase: device 0 offset 0x400000, size 0x10000Erasing at 0x400000 -- 100% complete.OK=>5.9.9.2.3. nand write - write to NAND deviceLet's c

Seite 187

5.9.10.2. echo - echo args to console=> help echoecho - echo args to consoleUsage:echo [args..] - echo args to console; \c suppresses newline=&g

Seite 188

5.9.10.5. version - print monitor version=> help versionversion - print monitor, compiler and linker versionUsage:version=>You can print the ver

Seite 189

Send your derivative work (in the most suitable format such as sgml) to the author.• License the derivative work with this same license or use GPL. In

Seite 190

bootdelay: After reset, U-Boot will wait this number of seconds before it executes the contents ofthe bootcmd variable. During this time a countdown i

Seite 191 - 14.3.26.1. XIP Kernel

U-Boot. Define this variable to hold the number of kB you want to reserve for pRAM. Note that theboard info structure will still show the full amount

Seite 192 - 14.3.26.2. Cramfs Filesystem

echo ===== Linux Kernel settings =====setenv bootfile /tftpboot/TQM860L/uImagesetenv kernel_addr 40040000setenv load_kernel 'tftp ${loadaddr} ${b

Seite 193 - 14.3.26.3. Hints and Notes

=> Hint: maximum flexibility can be achieved if you are using the Hush shell as command interpreter inU-Boot; see section 14.2.17. How the Command

Seite 194

## Application terminated, rc = 0x05.12.2. Timer Demo This example is only available on MPC8xx CPUs. 5.13. U-Boot Image FormatsU-Boot operates on &quo

Seite 195

This variable will be automatically created if it does not exist, and it will be updated at each reset ofthe processor. After a power-on reset, it wil

Seite 196 - 14.3.30. Swapping over NFS

The following command selects a standard configuration for the m28 board that has been extensively tested. Itis recommended to use this as a starting

Seite 197

7.5.1. Bootlog of tftp'd Linux kernel with Root Filesystem over NFS◊ 7.6. Boot from NAND Flash Memory♦ 7.7. Standalone Operation with Ramdisk Ima

Seite 198 - 14.4. Self

device tree source file structure, etc.).7.3. Passing Kernel ArgumentsIn nearly all cases, you will want to pass additional information to the Linux k

Seite 199

The advantage of this mechanism is that you don't have to spend precious system memory (RAM and flash)for network configuration tools like ifconf

Seite 200 - 14.5. RTAI

Directory Names directoryCommands to be typed a commandApplications NamesanotherapplicationPrompt of users command under bash shell bash$Prompt of roo

Seite 201 - 14.6. BDI2000

sections about the respective U-Boot commands. 7.5. Networked Operation with Root Filesystemover NFSThis section will show how to boot the target into

Seite 202

Image Name: Linux-3.6.0-next-20121001-00014- Created: 2012-10-02 13:23:40 UTC Image Type: ARM Linux Kernel Image (uncompressed) Dat

Seite 203 - 14.7. Motorola LITE5200 Board

[ 0.230000] usbcore: registered new interface driver usbfs[ 0.240000] usbcore: registered new interface driver hub[ 0.240000] usbcore: regist

Seite 204 - 15. Glossary

[ 1.350000] hub 2-0:1.0: 1 port detected[ 1.350000] mousedev: PS/2 mouse device common for all mice[ 1.360000] stmp3xxx-rtc 80056000.rtc: rtc

Seite 205

Starting Distributed Compiler Daemon: distcc.creating NFS state directory: donestarting 8 nfsd kernel threads: rpc.nfsd: Unable to access /proc/fs/nfs

Seite 206

Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK=> nand write ${kernel_addr_r} ${nand_off} ${filesize}NAND write: dev

Seite 207

stdout=serialstderr=serialbootcmd=bootm 42000000 - 41000000 bootargs=root=/dev/nfs rw nfsroot=192.168.1.1:/opt/eldk-5.2/armv5te/rootfsip=192.168.20.38

Seite 208

9.2. The TMPFS Virtual Memory Filesystem9.2.1. Mount Parameters◊ 9.2.2. Kernel Support for tmpfs◊ 9.2.3. Usage of tmpfs in Embedded Systems◊ ♦ 9.3. Us

Seite 209

Now we can run some basic tests to verify that the flash driver routines and the partitioning works asexpected:root@generic-armv5te:~#root@generic-arm

Seite 210 - YellowDog

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

Kommentare zu diesen Handbüchern

Keine Kommentare