Forum des Objets Communicants et Solutions pour les Libérer...


 
AccueilAccueil  GalerieGalerie  FAQFAQ  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  

Partagez | 
 

 Port serie uart du Karotz (boot)

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
itsmorefun
Bronze Nabz
Bronze Nabz


Localisation : France
Nabaztag : itsmorefun
Nbr de messages : 158
Carottes : 3782

MessageSujet: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 13:31

Port nommé "UART" sur la carte.
Ordre des pins: GRND/RX/TX/VCC (/!\ 3,3v comem sur le Nabaztag)
115200 8N1


Boot normal:

************************************************************
* *
* 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 root=/dev/ram rw init=/linuxrc quiet mem=65536K devfs=udev k_nbclick=0
Load Kernel...
Load Ramdisk...
Uncompressing Linux....................................................................................................................................................... done, booting the kernel.



boot en RAZ usine (boot en maintenant le bouton, on voit les "BBBBBB"):

************************************************************
* *
* 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
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Loading default partitions...
Read chip id = adda
Nand flash status = e0
Now coping partition 3 to 1 :
Partition 3 copied to RAM.
........................................................... (...) ...........
Ram copied to partition 1.

Now coping partition 4 to 2 :
Partition 4 copied to RAM.
.......................................................... (...) ...........
Ram copied to partition 2.

Now erasing partition 6 :
.......................................................... (...) ...........
[ERASE_ERROR#=56512]

[Bad block : block #56512 is marked as a bad block]
.......................................................... (...) ...........
Partition 6 erased.

Read chip id = adda
Nand flash status = e0
Set boot params = initrd=0x31800000,0x00500000 root=/dev/ram rw init=/linuxrc quiet mem=65536K devfs=udev k_nbclick=0
Load Kernel...
Load Ramdisk...
Uncompressing Linux....................................................................................................................................................... done, booting the kernel.



Le menu si on fait entrée:

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

0 permet d'envoyer un fichier sur le lapin
1 permet de flasher le lapin avec le fichier envoyer en 1 (/!\)
2 permet de booter sur le fichier en flash
3 effacer le fichier de la flash (/!\)
4 verifier la flash (/!\)
5 equivalent au RAZ usine (boot en maintenant le bouton du lapin)
6 sous menu de configuration

Le menu 6 ("Set boot params"):
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



Dommage, plus de sortie console une fois le programme chargé, peut-etre un des paramètres du sous menu de config 6 permet d'activer la sortie mais je n'ai pas jouer avec les paramètres....


Dernière édition par itsmorefun le Dim 21 Aoû 2011 - 17:43, édité 1 fois
Revenir en haut Aller en bas
RedoX
Platinum Nabz
Platinum Nabz


Localisation : France
Nbr de messages : 1184
Carottes : 3669

MessageSujet: Re: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 14:05

Interessant, j'ai pas eu le temps de regarder par là...

Pour la console après le boot, essaye d'ajouter :
Code:
console=ttyS0,115200
aux paramètres du kernel yellownabzwink

Edit: En fait, y'a pas moyen d'ajouter une option au kernel directement à priori.

L'option serial mise à 1 ne change à priori rien

Edit2: Je déconseille l'utilisation de l'option Test NAND, j'ai brické un dockstar comme ça...

Edit3: Pour savoir ce que sort le kernel:
> Option serial [3] à à 1
> Option tty [8] à 0


Dernière édition par RedoX le Dim 21 Aoû 2011 - 15:04, édité 2 fois
Revenir en haut Aller en bas
http://wiki.openjabnab.fr/
itsmorefun
Bronze Nabz
Bronze Nabz


Localisation : France
Nabaztag : itsmorefun
Nbr de messages : 158
Carottes : 3782

MessageSujet: Re: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 15:01

RedoX a écrit:
RedoX a écrit:
Interessant, j'ai pas eu le temps de regarder par là...

Pour la console après le boot, essaye d'ajouter :
Code:
console=ttyS0,115200
aux paramètres du kernel yellownabzwink

Edit: A priori, y'a pas moyen d'accéder aux paramèters du kernel :/

Peut-être un des paramètres du menu de config 6 permet d'ajouter cette ligne de commande aux paramètres du kernel, je pense notamment a "[3] : serial" ou "[8] : tty " ou "[14] : userpara"?
Revenir en haut Aller en bas
RedoX
Platinum Nabz
Platinum Nabz


Localisation : France
Nbr de messages : 1184
Carottes : 3669

MessageSujet: Re: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 15:03

Check mon édit yellownabzsmile

Edit: L'option [3] ne sert à rien en fait... Laisse la à 0
Revenir en haut Aller en bas
http://wiki.openjabnab.fr/
itsmorefun
Bronze Nabz
Bronze Nabz


Localisation : France
Nabaztag : itsmorefun
Nbr de messages : 158
Carottes : 3782

MessageSujet: Re: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 17:47

Nickel:

Set boot params = initrd=0x31800000,0x00500000 root=/dev/ram rw init=/linuxrc console=ttySAC0,115200 mem=65536K devfs=udev k_nbclick=0
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 Tue Mar 8 11:55:48 CET 2011
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 mem=65536K devfs=udev k_nbclick=0
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
Revenir en haut Aller en bas
RedoX
Platinum Nabz
Platinum Nabz


Localisation : France
Nbr de messages : 1184
Carottes : 3669

MessageSujet: Re: Port serie uart du Karotz (boot)   Dim 21 Aoû 2011 - 17:50

Bouuuhhhh, il a un bad block sur sa NAND nabzblah

Faut pas le maltraiter le petit ^^
Revenir en haut Aller en bas
http://wiki.openjabnab.fr/
35niavlys
Lapin nain
Lapin nain


Localisation : Ille et Vilaine
Nbr de messages : 7
Carottes : 2052

MessageSujet: Re: Port serie uart du Karotz (boot)   Ven 26 Aoû 2011 - 23:32

Intéressant nabzhello1

Merci pour ces recherches
Revenir en haut Aller en bas
http://karotz.sylvainmenu.com
Contenu sponsorisé




MessageSujet: Re: Port serie uart du Karotz (boot)   Aujourd'hui à 9:12

Revenir en haut Aller en bas
 
Port serie uart du Karotz (boot)
Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Port serie uart du Karotz (boot)
» p.nabaztag.com and correct port number
» Un commandant de U-boot parmi tant d'autre
» [A Valider] Port-Guyet
» Numero de serie déja utilisé... :-(

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum des Objets Communicants et Solutions pour les Libérer... :: II. Nabaztag, Karotz, mir:ror, Dal:Dal (Violet Object Operating System) :: Le monde de Karotz-
Sauter vers: