H. Hoegl XXX veraltet, bitte updaten. Apex ----- apex> help help sorting 32 help [. | COMMAND] Display help. The optional command parameter will show the detailed help for commands that would match that prefix. e.g. help dump # Show help for dump command help d # Show help for all 'd' commands help # List the available commands help . # Show all help topics apex> help sorting 29 alias - show or set aliases boot - boot Linux checksum - compute crc32 checksum clock - Get clock speed compare - compare regions copy - copy data between devices crc - compute crc32 checksum using lpc313x tables drvinfo - list available drivers dump - dump data to the console erase - erase device region fill - fill a region with a byte go - execute program at address help - list available commands image - image handling info - display information about a region descriptor mmc - test MMC controller printenv - show the environment reset - reset target saveenv - save environment to non-volatile memory setenv - set environment variable unalias - remove an alias unsetenv - restore environment variable to default version - show version and copyright wait - wait before continuing xreceive - receive data over the serial line apex> apex> printenv cmdline *= console=ttyS0,115200n8 root=/dev/ram0 rw loglevel=7 ramdisk_size=12000K ext2-drv *= mmc startup *= wait 10;copy $kernelsrc $bootaddr;copy $ramdisksrc $ramdiskaddr; boot ramdisksrc *= lnand:4864K+2m kernelsrc *= lnand:768k+2m ramdisksize *= 0x00300000 ramdiskaddr *= 0x32000000 bootaddr *= 0x30008000 arch-number *= 9998 apex> help dump sorting 29 dump [-1|-2|-4] SRC Display SRC region data on the console. The default SRC region length is 64 bytes. The -# options change the width of the displayed values. The width option is sticky--once set it will remain in effect until changed again. e.g. dump -4 nor:0 # Display 32 bit words # & set default dump width to 4 dump 0x20200000 apex> drvinfo serial-lpx313x - lpx313x serial driver console - console driver memory - generic RAM driver spinor - LPC SPI flash driver mmc - MMC/SD card driver ext2fs - Ext2 filesystem driver apex> help fill sorting 29 fill [-1|-2|-4] VALUE DST Fills the DST region with the value VALUE. The default DST region length is the fill width. The default fill width is 1 byte. The -# options change the fill width. The width option is sticky for this command--once set it will remain in effect until changed with another fill command. This command cannot be used to erase flash. e.g. fill 0xe5 0x100 # Write one 0xe5 byte fill -4 0xe5 0x100+256 # Write 64 0x000000e5's # & set default fill width to 4 apex> help xreceive sorting 29 xreceive REGION Receive binary data via the console using Xmodem protocol. Data is written directly to REGION. The length of REGION is ignored. e.g. xreceive 0x2001000 # Receive and write to SDRAM xreceive nor:0 # Receive and write to NOR flash TODO: memlimit, memscan, memtest Kommandos konfigurieren! apex> help memlimit sorting 32 memlimit [SIZE] Limit amount of memory passed to the Linux kernel. SIZE is a count of bytes and may be suffixed with 'm' or 'k' for megabytes or kilobytes. The value may be negative in which case the limit is subtracted from the total memory available. Pass a SIZE of zero to clear the limit. If there is no parameter, the command will display the current limit. The limit is always rounded to an even number of 4KiB pages. e.g. memlimit 8m memlimit -2m apex> help memscan sorting 32 memscan [-u] REGION Scans for valid memory. This command is used to rescan memory, identifying aliased regions in order to report the contiguous blocks. With the -u switch, the command will update the memory map given to the kernel when it boots. e.g. memscan -u 0xc0000000+512m apex> help memtest sorting 32 memtest REGION Perform memory test. This command performs a memory test over a region of RAM. It first does the essential check for broken or swapped traces, then it does a complete memory test of the region. e.g. memtest 4m+60m # Test 60MiB starting at 4MiB memtest laeuft leider immer ohne Meldung durch, z.B. hier: apex> memtest 0x30000000+16m apex> apex> info ext2://2/ (funktioniert nicht) XXX Siehe die folgenden memory: und mmc: Informationen! Es werden nur 1 MByte SDRAM erkannt. Die MMC Karte ist "no card aquired". apex> version APEX Boot Loader 1.6.8 -- Copyright (c) 2004-2008 Marc Singer compiled for Unspecified target on 2011.Aug.16-10:33:48 APEX comes with ABSOLUTELY NO WARRANTY. It is free software and you are welcome to redistribute it under certain circumstances. For details, refer to the file COPYING in the program source. apex => mem:0x11029000+0xe464 (58468 bytes) env => lnand:512k+256k (bad-region) memory: 0x30000000 0x00100000 ( 1 MiB) mmc: no card acquired Use the command 'help help' to get started. apex> alias apex mem:0x11029000+0xe45c env lnand:512k+256k apex> Kernel booten ------------- Kommandos:: apex> info ext2://2/ ... apex> copy ext2://2/zImage 0x30008000 apex> boot console=ttyS0,115200n8 root=/dev/mmcblk0p2 ro rootwait SDRAM ----- o AN10935: Using SDR/DDR SDRAM memories with LPC32xx - Low-power mapping: Bank-Row-Column (BRC) Mapping - High-perf mapping: Row-Bank-Column (RBC) Mapping Weitere Hinweise ----------------- - Apex Git Repo: git://gitorious.org/apex/apex.git - tools/CMSIS/ - Hier sind Header-Dateien fuer den LPC3131 aus dem Micropendousx Projekt. - Bootet nur von originaler Sandisk 4GB SD HC Karte! (noch mit Apex von Benedikt): :: hhoegl@aspire1:~$ sudo picocom -b 115200 /dev/ttyUSB1 picocom v1.4 port is : /dev/ttyUSB1 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a noinit is : no noreset is : no nolock is : no send_cmd is : ascii_xfr -s -v -l10 receive_cmd is : rz -vv Terminal ready APEX Boot Loader 1.6.8 -- Copyright (c) 2004-2008 Marc Singer compiled for Unspecified target on 2011.Aug.01-06:33:06 APEX comes with ABSOLUTELY NO WARRANTY. It is free software and you are welcome to redistribute it under certain circumstances. For details, refer to the file COPYING in the program source. apex => mem:0x11029000+0xe214 (57876 bytes) env => lnand:512k+256k (bad-region) Use the command 'help help' to get started. # wait 10 # copy ext2://2/zImage 0x30008000 813848 bytes transferred # boot ARCH_ID: 9998 (0x270e) ATAG_HEADER ATAG_MEM: start 0x30000000 size 0x00100000 ATAG_CMDLINE: (55 bytes) ' ' ATAG_END Booting kernel at 0x30008000... [haengt ab hier] [erneuter Bootvorgang] :: Terminal ready # copy ext2://2/zImage 0x30008000 813848 bytes transferred # boot ARCH_ID: 9998 (0x270e) ATAG_HEADER ATAG_MEM: start 0x30000000 size 0x00800000 ATAG_CMDLINE: (55 bytes) 'console=ttyS0,115200n8 root=/dev/mmcblk0p2 ro rootwait' ATAG_END Booting kernel at 0x30008000... Uncompressing Linux....................................................... done, booting the kernel. Linux version 2.6.28.2 (bene@studio) (gcc version 4.3.5 (Buildroot 2011.02) ) #24 Sat Jul 23 20:37:39 CEST 2011 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: NXP EA313X Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2032 Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p2 ro rootwait irq=30 Event=0x67 bank:3 bit:7 type:3 irq=31 Event=0x7a bank:3 bit:26 type:2 irq=32 Event=0x77 bank:3 bit:23 type:2 irq=33 Event=0x7b bank:3 bit:27 type:0 irq=34 Event=0x18 bank:0 bit:24 type:1 irq=35 Event=0x17 bank:0 bit:23 type:0 irq=36 Event=0x55 bank:2 bit:21 type:0 PID hash table entries: 32 (order: 5, 128 bytes) Console: colour dummy device 80x30 console [ttyS0] enabled 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: 6324KB available (1504K code, 139K data, 80K init) Calibrating delay loop... 89.34 BogoMIPS (lpj=178688) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok Unable to register USB gadget. Check USB_ID jumper!!!!! SCSI subsystem initialized NetWinder Floating Point Emulator V0.97 (extended precision) msgmni has been set to 16 io scheduler noop registered io scheduler anticipatory registered (default) Serial: 8250/16550 driver1 ports, IRQ sharing disabled �serial8250: ttyS0 at MMIO 0x15001000 (irq = 10) is a NXP16750 �serial8250.0: ttyS0 at MMIO 0x15001000 (irq = 10) is a NXP16750 brd: module loaded Driver 'sd' needs updating - please use bus_type methods spi_lpc313x spi_lpc313x.0: LPC313x SPI driver cpuidle: using governor ladder sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman lpc313x_mmc lpc313x_mmc.0: LPC313x MMC controller at irq 26 VFP support v0.3: not present Waiting for root device /dev/mmcblk0p2... mmc0: new SDHC card at address d555 mmcblk0: mmc0:d555 SU04G 3.79 GiB mmcblk0: p1 p2 VFS: Mounted root (ext2 filesystem) readonly. Freeing init memory: 80K Warning: unable to open an initial console. Kernel panic - not syncing: No init found. Try passing init= option to kernel. [haengt ab hier] Die ATAG Sachen sind hier beschrieben: http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html - Tags mit exuberant ctags machen:: cd apex/work_1.6.8 /usr/bin/ctags-exuberant -R