Serielle Konsole
Quelle und Idee: nabaztag.forumactif.fr
Lötarbeiten erfolgreich abgeschlossen? Du hast Das BIOS des Hasen gesehen? Sehr gut! Du kommst dem Ziel langsam (aber sicher) näher
************************************************************* * * * Rabbit V3 - ( BIOS v1.16 ) * * * * * * PRAGMATEC/Point Core * ************************************************************ FCLK=405MHz, HCLK=135MHz, PCLK=67MHz, CPU is running at 405MHz Press ENTER to stop the autoboot ........................................Read chip id = adda Nand flash status = e0 Set boot params = initrd=0x31800000,0x00500000 ... Load Kernel... Load Ramdisk... Uncompressing Linux.............................. ................................................. ................................................. ....................... done, booting the kernel.
Mehr kommt im Moment noch nicht zum Vorschein, wenn Du Deinen Hasen mit verbundener serieller Schnittstelle einschaltest. Das liegt daran, dass die Kernel Commandline keinen Parameter für eine serielle Konsole nach dem BIOS enthält. Aber das läßt sich ändern. Die Zeile Press ENTER to stop the autoboot
verrät auch wie. Schalte Deinen Hasen ein und drücke, sobald Du die Aufforderung auf dem Bildschirm hast, die ENTER
Taste. Das Bootmenü erscheint:
Please select function : 0 : Uart download file 1 : Write Nand flash with download file 2 : Load Pragram from Nand flash and run 3 : Erase Nand flash regions 4 : Test NAND flash 5 : Restore default partitions 6 : Set boot params
Für Dich sind im Moment die Punkte 6 und 2 interessant. Mit 6 <ENTER>
wechselt man in das Menü für benutzerdefinierte Kernelparameter. Bitte vorsicht - dort kann man viel kaputt machen:
Config parameters [0] : bootpara is 0x00000001 (1) [1] : cpuclk is 0x00000002 (2) [2] : AUTORUN is 0x00000000 (0) [3] : serial is 0x00000000 (0) [4] : baudrate is 0x0001c200 (115200) [5] : machine is 0x00000778 (1912) [6] : runAddr is 0x30200000 (807403520) [7] : rootfs is 0x00000000 (0) [8] : tty is 0x00000004 (4) [9] : initrdA is 0x31800000 (830472192) [10] : initrdL is 0x00500000 (5242880) [11] : memsize is 0x04000000 (67108864) [12] : devfs is 0x00000000 (0) [13] : ostore is 0x00000000 (0) [14] : userpara is 0x00000000 (0) [15] : Exit
Unser Ziel ist es nun, dem Kernel über den Punkt 14 „userpara“ einen zusätzlichen Parameter mitzugeben, der uns eine serielle Konsole bereitstellt, nämlich console=ttySAC0,115200. Anschließend sollte da stehen [14] : userpara is 0x00000016 (22)
Kurzfassung:
* Bootvorgang mit <ENTER> abbrechen * 6 <ENTER> * 14 <ENTER> * console=ttySAC0,115200 <ENTER> * 15 <ENTER> * y <ENTER> * 2 <ENTER>
Nun solltest Du den gesamten Bootprozess verfolgen können (dieser Bootprozess stammt von einem französischen Hasen und sieht u.U. etwas anders aus als bei Dir):
Set boot params = initrd=0x31800000,0x00500000 root=/dev/ram rw init=/linuxrc console=ttySAC0,115200 ... Load Kernel... Load Ramdisk... Uncompressing Linux.............................. ................................................. ................................................. ....................... done, booting the kernel. Linux version 2.6.28-pragmatec -g5122909-dirty (guillaume@guillaume-desktop) (gcc version 3.4.1) #1 ... CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 CPU: VIVT data cache, VIVT instruction cache Machine: RABBITV3 BY PRAGMATEC ATAG_INITRD is deprecated; please update your bootloader. Memory policy: ECC disabled, Data cache writeback CPU S3C2440A (id 0x32440001) S3C244X: core 405.000 MHz, memory 135.000 MHz, peripheral 67.500 MHz S3C24XX Clocks, (c) 2004 Simtec Electronics CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: initrd=0x31800000,0x00500000 root=/dev/ram rw init=/linuxrc console=ttySAC0,115200 ... irq: clearing pending ext status 0001f2f0 irq: clearing subpending status 000001b7 irq: clearing subpending status 00000092 PID hash table entries: 256 (order: 8, 1024 bytes) timer tcon=00000000, tcnt dbb9, tcfg 00000200,00000000, usec 000016c1 Console: colour dummy device 80x30 console [ttySAC0] enabled Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 54800KB available (4372K code, 435K data, 140K init) Calibrating delay loop... 201.93 BogoMIPS (lpj=504832) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 288 bytes NET: Registered protocol family 16 S3C2440: Initialising architecture S3C2440: IRQ Support S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics DMA channel 0 at c4808000, irq 33 DMA channel 1 at c4808040, irq 34 DMA channel 2 at c4808080, irq 35 DMA channel 3 at c48080c0, irq 36 S3C244X: Clock Support, DVS off s3c24xx-pwm s3c24xx-pwm.0: tin at 33750000, tdiv at 33750000, tin=divclk, base 0 s3c24xx-pwm s3c24xx-pwm.1: tin at 33750000, tdiv at 33750000, tin=divclk, base 8 s3c24xx-adc s3c24xx-adc: attached adc driver SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb cfg80211: Using static regulatory domain info cfg80211: Regulatory domain: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) cfg80211: Calling CRDA for country: US NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 5120K NetWinder Floating Point Emulator V0.97 (double precision) Installing knfsd (copyright (C) 1996 okir@monad.swb.de). NTFS driver 2.1.29 [Flags: R/W]. fuse init (API version 7.10) yaffs Mar 8 2011 11:52:22 Installing. msgmni has been set to 117 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered fb0: s3c2410fb frame buffer device Rabbit Ears Driver - pwm0 request OK Rabbit Ears Driver - pwm1 request OK Rabbit Ears Driver V2.3 - successfully loaded Rabbit Button Driver V1.3 - successfully loaded Rabbit poweron Driver V1.0 - successfully loaded s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440 s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440 s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440 brd: module loaded loop: module loaded nbd: registered device at major 43 usbcore: registered new interface driver ub rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver usbcore: registered new interface driver rtl8150 usbcore: registered new interface driver MOSCHIP usb-ethernet driver usbcore: registered new interface driver rt2500usb usbcore: registered new interface driver rt73usb Linux video capture interface: v2.00 initializing s3c2440 camera interface...... s3c2440 camif init done Loading OV7675 driver 8. get_page at init. default:640*480...... OV7675 address 0x42, manufacture ID 0x7FA2, expect 0x7FA2 OV7675 address 0x42, product ID 0x7673, expect 0x7673 init_image_buffer start init_image_buffer 1. size : 614400 ; order : 8 init_image_buffer ok OV7675 init done! Driver 'sd' needs updating - please use bus_type methods S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c2440-nand s3c2440-nand: Tacls=3, 22ns Twrph0=7 51ns, Twrph1=3 22ns NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit) NAND_ECC_NONE selected by board driver. This is not recommended !! Scanning device for bad blocks Bad eraseblock 883 at 0x06e60000 Creating 8 MTD partitions on "NAND 256MiB 3,3V 8-bit": 0x00000000-0x00040000 : "bootloader" 0x00040000-0x00340000 : "Kernel" 0x00340000-0x00840000 : "ramdisk" 0x00840000-0x00b40000 : "kernel rescue" 0x00c40000-0x01140000 : "ramdisk rescue" 0x01240000-0x01540000 : "yaffs rescue" 0x01540000-0x0ff40000 : "yaffs" 0x0ff40000-0x10000000 : "mystery box" usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usb usb1: New USB device found, idVendor=1d6b, idProduct=0001 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: S3C24XX OHCI usb usb1: Manufacturer: Linux 2.6.28-pragmatec -g5122909-dirty ohci_hcd usb usb1: SerialNumber: s3c24xx usbcore: registered new interface driver usblp usbcore: registered new interface driver cdc_wdm Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. s3c2410_udc: debugfs dir creation failed -19 s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes g_serial gadget: Gadget Serial v2.4 g_serial gadget: g_serial ready mice: PS/2 mouse device common for all mice S3C24XX RTC, (c) 2004,2006 Simtec Electronics s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0 i2c /dev entries driver s3c2440-i2c s3c2440-i2c: slave address 0x10 s3c2440-i2c s3c2440-i2c: bus frequency set to 383 KHz s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter hwmon - probing S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Advanced Linux Sound Architecture Driver Version 1.0.18rc3. ASoC version 0.13.2 S3C24XX_UDA134X SoC Audio driver UDA134X SoC Audio Codec uda134x_write reg: 08, value:40 uda134x_write reg: 08, value:00 uda134x_write reg: 02, value:02 uda134x_write reg: 04, value:10 asoc: UDA134X <-> s3c24xx-i2s mapping ok ALSA device list: #0: S3C24XX_UDA134X (UDA134X) TCP cubic registered NET: Registered protocol family 17 NET: Registered protocol family 15 RPC: Registered udp transport module. RPC: Registered tcp transport module. RAMDISK: Compressed image found at block 0 VFS: Mounted root (cramfs filesystem) readonly. Freeing init memory: 140K usb 1-1: new full speed USB device using s3c2410-ohci and address 2 Mounting /proc Mounting /sys Mounting /var usb 1-1: configuration #1 chosen from 1 choice Creating /var entries hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected usb 1-1: New USB device found, idVendor=0451, idProduct=2046 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 Mounting /dev/ Creating /dev/ basic inputs usb 1-1.3: new full speed USB device using s3c2410-ohci and address 3 usb 1-1.3: configuration #1 chosen from 1 choice phy0 -> rt2500usb_init_eeprom: Error - Invalid RT chipset detected. phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device. Registered led device: rt73usb-phy1:radio Registered led device: rt73usb-phy1:assoc Registered led device: rt73usb-phy1:quality usb 1-1.3: New USB device found, idVendor=148f, idProduct=2573 usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1.3: Product: 802.11 bg WLAN usb 1-1.3: Manufacturer: Ralink yaffs: dev is 32505862 name is "mtdblock6" yaffs: passed flags "" yaffs: Attempting MTD mount on 31.6, "mtdblock6" yaffs: auto selecting yaffs2 block 714 is bad yaffs_read_super: isCheckpointed 0 _ _ ________________ / \ / \ / \ \ \ / / | www.karotz.com | \ \ / / \____ __________/ _ __ \ \___/ / _ /_/ | |/ / / \ | | | ' / __|_ O __O __| | |_ ____ | < / _` || '__|/ _ \ | __||_ / | . \| (_| || | | (_) || |_ / / |_|\_\\__,_||_| \___/ \__|/___| Rootfs version : 11.03.12.00 System version : 10.10.10.10 NAND status : 1 bad blocks Auto Update : yes root: [INIT] clean yaffs found root: [INIT] yaffs start root: [START] starting yaffs. killall: led: no process killed root: [START] no wifi country information ifconfig: SIOCGIFFLAGS: No such device rt73usb 1-1.3:1.0: firmware: requesting rt73.bin root: [START] voos.conf missing root: [START] karotz not connected
Soweit, so gut. Aber ein # Prompt haben wir leider immer noch nicht: Also weitersuchen...