Closed embLin closed 9 years ago
That error didn't show up today. I just tried this version from GitHub. If that happened just by coincidence I'll let you know, else it's working.
no problem is not solved, this morning it worked because it was a very short boottime.
I'm not sure how to reproduce this. Can you debug this on your side, by putting the following at the top of the loop, right after x = s.read(), and let me know the results: sys.stdout.write(x) sys.stdout.flush()
Thanks. If you could provide this, as well as an example of what is expected from the program, that would be great.
ah yes i should have added this to the post: here is the output which i can see using the serial terminal "putty":
RomBOOT
Start AT91Bootstrap...
version 0.8 SDCard
Watchdog disabled
GPIO configured
GSM enabled
Ethernet needs to be initialized in Uboot
PMECC disabled...
Init DDR... Done!
Downloading image...
Copy 0x1 bytes from 0x0 to 0x26f00000 Downloading Kernel
Done!
U-Boot 2010.06 (Dec 10 2013 - 10:01:41) version 0.4 SDCARD
I2C: Found AT91 i2c
ready
DRAM: 128 MiB
NAND: Atmel NAND disable PMECC
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (Toshiba
Found AT91 i2c In: serial Out: serial Err: serial Net: show_boot_progress 64 show_boot_progress 65 macb0 macb0: Starting autonegotiation... macb0: Autonegotiation complete macb0: link up, 100Mbps full-duplex (lpa: 0x41e1) Hit any key to stop autoboot: 1 0 show_boot_progress 1
show_boot_progress 2 show_boot_progress 3 Image Name: Linux-2.6.39 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 9229644 Bytes = 8.8 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK show_boot_progress 4 show_boot_progress 5 show_boot_progress 6 show_boot_progress 14 Loading Kernel Image ... OK OK show_boot_progress 7 show_boot_progress 8 show_boot_progress 15
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.39 (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #4 Fri Dec 20 10:28:32 CET 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9X5-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=ttyAT0,115200 ubi.mtd=User
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 106764k/106764k available, 24308k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc8800000 - 0xfee00000 ( 870 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc11ee000 (18328 kB)
.text : 0xc11ee000 - 0xc1651908 (4495 kB)
.data : 0xc1652000 - 0xc1683080 ( 197 kB)
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
AT91: CM rev A
AT91: EK rev A
AT91: Power Management (with slow clock mode)
AT91: Starting after power-restored wakeup
bio: create slab
Welcome to Buildroot
AT91SAM9 login: root
there goes the output with your script and the sys.stdout.write(x), sys.stdout.flush():
$ grabserial -v -d "/dev/ttyUSB0" -b 115200 -w 8 -p N -s 1 -t Opening serial port /dev/ttyUSB0 115200:8N1:xonxoff=0:rtcdtc=0 Printing timing information for each line Use Control-C to stop... DDoonnee!!0.000003]
[2.054873 2.054870]
[2.058914 0.004041]
U[2.060884 0.001970] U--BBoooott 22001100..0066 ((DDeecc 1100 22001133 -- 1100::0011::4411))
T[2.142908 0.082024] vveerrssiioonn 00..44 SSDDCCAARRDD
[2.199486 0.056578]
I[2.199866 0.000380] I22CC:: FFoouunndd AATT9911 ii22cc
r[2.250103 0.050237] reeaaddyy
D[2.263908 0.013805] DRRAAMM:: 112288 MMiiBB
N[2.295844 0.031936] NAANNDD:: AAttmmeell NNAANNDD ddiissaabbllee PPMMEECCCC
N[2.361839 0.065995] NAANNDD ddeevviiccee:: MMaannuuffaaccttuurreerr IIDD:: 00xx0011,, CChhiipp IIDD:: 00xxff11 ((TToosshhiibbaa <
1[2.654845 0.150924] 12288 MMiiBB
[2.672846 0.018001] **\ WWaarrnniinngg -- bbaadd CCRRCC oorr NNAANNDD,, uussiinngg ddeeffaauulltt eennvviirroonnmmeenntt
[2.792895 0.120049]
F[2.795102 0.002207] Foouunndd AATT9911 ii22cc
I[2.829050 0.033948] Inn:: sseerriiaall
O[2.859009 0.029959] Ouutt:: sseerriiaall
E[2.889099 0.030090] Errrr:: sseerriiaall
N[2.919070 0.029971] Neett:: sshhoowwbboooottpprrooggrreessss 6644
s[2.978849 0.059779] shhoowwbboooottpprrooggrreessss 6655
m[3.024861 0.046012] maaccbb00
m[3.038848 0.013987] maaccbb00:: SSttaarrttiinngg aauuttoonneeggoottiiaattiioonn......
m[3.110906 0.072058] maaccbb00:: AAuuttoonneeggoottiiaattiioonn ccoommpplleettee
m[3.182886 0.071980] maaccbb00:: lliinnkk uupp,, 110000MMbbppss ffuullll--dduupplleexx ((llppaa:: 00xx4411ee11))
H[3.284978 0.102092] Hiitt aannyy kkeeyy ttoo ssttoopp aauuttoobboooott:: 00
s[3.609900 0.324922] shhoowwbboooottpprrooggrreessss 11
s[3.759919 0.105930] shhoowwbboooottpprrooggrreessss 22 s[3.803987 0.044068] shhoowwbboooottpprrooggrreessss 33 [3.847902 0.043915] IImmaaggee NNaammee:: LLiinnuuxx--22..66..3399 [3.910094 0.062192] IImmaaggee TTyyppee:: AARRMM LLiinnuuxx KKeerrnneell IImmaaggee ((uunnccoommpprreesssseedd)) [4.021909 0.111815] DDaattaa SSiizzee:: 99222299664444 BByytteess == 88..88 MMiiBB [4.105907 0.083998] LLooaadd AAddddrreessss:: 2200000088000000 [4.159896 0.053989] EEnnttrryy PPooiinntt:: 2200000088000000 [4.213925 0.054029] VVeerriiffyyiinngg CChheecckkssuumm ...... OOKK s[4.798901 0.584976] shhoowwbboooottpprrooggrreessss 44 s[4.842918 0.044017] shhoowwbboooottpprrooggrreessss 55 s[4.886989 0.044071] shhoowwbboooottpprrooggrreessss 66 s[4.930967 0.043978] shhoowwbboooottpprrooggrreessss 1144 [4.976912 0.045945] LLooaaddiinngg KKeerrnneell IImmaaggee ...... OOKK
O[6.626894 1.649982] OKK s[6.634881 0.007987] shhoowwbboooottpprrooggrreessss 77 s[6.678862 0.043981] shhoowwbboooottpprrooggrreessss 88 s[6.722920 0.044058] shhoowwbboooottpprrooggrreessss 1155
[6.771005 0.048085] S[6.772947 0.001942] Sttaarrttiinngg kkeerrnneell ......
[6.817021 0.044074] U[6.818972 0.001951] Unnccoommpprreessssiinngg LLiinnuuxx...... ddoonnee,, bboooottiinngg tthhee kkeerrnneell.. L[8.482000 1.663028] Liinnuuxx vveerrssiioonn 22..66..3399 ((ggcccc vveerrssiioonn 44..55..22 ((SSoouurrcceerryy GG++++ LLiittee 22001111..0033--4411)) )) ##44 FFrrii DDeecc 2200 1100::2288::3322 CCEETT 22001133
C[8.777920 0.295920] CPPUU:: AARRMM992266EEJJ--SS [[4411006699226655]] rreevviissiioonn 55 ((AARRMMvv55TTEEJJ)),, ccrr==0000005533117777
C[8.903951 0.126031] CPPUU:: VVIIVVTT ddaattaa ccaacchhee,, VVIIVVTT iinnssttrruuccttiioonn ccaacchhee
M[8.995892 0.091941] Maacchhiinnee:: AAttmmeell AATT9911SSAAMM99XX55--EEKK
M[9.055911 0.060019] Meemmoorryy ppoolliiccyy:: EECCCC ddiissaabblleedd,, DDaattaa ccaacchhee wwrriitteebbaacckk
C[9.157895 0.101984] Clloocckkss:: CCPPUU 440000 MMHHzz,, mmaasstteerr 113333 MMHHzz,, mmaaiinn 1122..000000 MMHHzz
B[9.265926 0.108031] Buuiilltt 11 zzoonneelliissttss iinn ZZoonnee oorrddeerr,, mmoobbiilliittyy ggrroouuppiinngg oonn.. TToottaall ppaaggeess:: 3322551122
K[9.417911 0.151985] Keerrnneell ccoommmmaanndd lliinnee:: mmeemm==112288MM ccoonnssoollee==ttttyyAATT00,,111155220000 uubbii..mmttdd==UUsseerr
P[9.551958 0.134047] PIIDD hhaasshh ttaabbllee eennttrriieess:: 551122 ((oorrddeerr:: --11,, 22004488 bbyytteess))
D[9.660904 0.108946] Deennttrryy ccaacchhee hhaasshh ttaabbllee eennttrriieess:: 1166338844 ((oorrddeerr:: 44,, 6655553366 bbyytteess))
I[9.790881 0.129977] Innooddee--ccaacchhee hhaasshh ttaabbllee eennttrriieess:: 88119922 ((oorrddeerr:: 33,, 3322776688 bbyytteess))
M[9.914928 0.124047] Meemmoorryy:: 112288MMBB == 112288MMBB ttoottaall
M[9.975919 0.060991] Meemmoorryy:: 110066776644kk//110066776644kk aavvaaiillaabbllee,, 2244330088kk rreesseerrvveedd,, 00KK hhiigghhmmeemm
V[10.113889 0.137970] Viirrttuuaall kkeerrnneell mmeemmoorryy llaayyoouutt::
[10.179906 0.066017] vveeccttoorr :: 00xxffffffff00000000 -- 00xxffffffff11000000 (( 44 kkBB))
[10.285934 0.106028] ffiixxmmaapp :: 00xxffffff0000000000 -- 00xxffffffee00000000 (( 889966 kkBB))
[10.397663 0.111729] DDMMAA :: 00xxffff000000000000 -- 00xxffffee0000000000 (( 1144 MMBB))
[10.497905 0.100242] vvmmaalllloocc :: 00xxcc88880000000000 -- 00xxffeeee0000000000 (( 887700 MMBB))
[10.605620 0.107715] lloowwmmeemm :: 00xxcc00000000000000 -- 00xxcc88000000000000 (( 112288 MMBB))
[10.707932 0.102312] mmoodduulleess :: 00xxbbff000000000000 -- 00xxcc00000000000000 (( 1166 MMBB))
[10.814934 0.107002] ..iinniitt :: 00xxcc00000088000000 -- 00xxcc1111eeee000000 ((1188332288 kkBB))
[10.922919 0.107985] ..tteexxtt :: 00xxcc1111eeee000000 -- 00xxcc11665511990088 ((44449955 kkBB))
[11.037690 0.114771] ..ddaattaa :: 00xxcc11665522000000 -- 00xxcc11668833008800 (( 119977 kkBB))
N[11.138913 0.101223] NRRIIRRQQSS::119922
A[11.169961 0.031048] ATT9911:: 112288 ggppiioo iirrqqss iinn 44 bbaannkkss
C[11.238989 0.069028] Coonnssoollee:: ccoolloouurr dduummmmyy ddeevviiccee 8800xx3300
c[11.313913 0.074924] coonnssoollee [[ttttyySS00]] eennaabblleedd
C[11.368971 0.055058] Caalliibbrraattiinngg ddeellaayy lloooopp...... 119999..0066 BBooggooMMIIPPSS ((llppjj==999955332288))
p[11.485918 0.116947] piiddmmaaxx:: ddeeffaauulltt:: 3322776688 mmiinniimmuumm:: 330011
M[11.566906 0.080988] Moouunntt--ccaacchhee hhaasshh ttaabbllee eennttrriieess:: 551122
C[11.644921 0.078015] CPPUU:: TTeessttiinngg wwrriittee bbuuffffeerr ccoohheerreennccyy:: ookk
N[11.731920 0.086999] NEETT:: RReeggiisstteerreedd pprroottooccooll ffaammiillyy 1166
A[11.808906 0.076986] ATT9911:: CCMM rreevv AA
A[11.843969 0.035063] ATT9911:: EEKK rreevv AA
A[11.880947 0.036978] ATT9911:: PPoowweerr MMaannaaggeemmeenntt ((wwiitthh ssllooww cclloocckk mmooddee))
A[11.978902 0.097955] ATT9911:: SSttaarrttiinngg aafftteerr ppoowweerr--rreessttoorreedd wwaakkeeuupp
b[12.067903 0.089001] biioo:: ccrreeaattee ssllaabb <
I[18.972912 0.124019] IRR NNEECC pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.046895 0.073983] IRR RRCC55((xx)) pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.126905 0.080010] IRR RRCC66 pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.200841 0.073936] IRR JJVVCC pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.274853 0.074012] IRR SSoonnyy pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.350907 0.076054] IRR RRCC55 ((ssttrreeaammzzaapp)) pprroottooccooll hhaannddlleerr iinniittiiaalliizzeedd
I[19.448998 0.098091] IRR LLIIRRCC bbrriiddggee hhaannddlleerr iinniittiiaalliizzeedd
L[19.520924 0.071926] Liinnuuxx vviiddeeoo ccaappttuurree iinntteerrffaaccee:: vv22..0000
c[19.596903 0.075979] caammeerraa 00--00:: PPrroobbiinngg 00--00
o[19.648745 0.051842] ovv22664400 00--00003300:: PPrroodduucctt IIDD eerrrroorr ffaa::ffaa
u[19.729951 0.081206] ussbbccoorree:: rreeggiisstteerreedd nneeww iinntteerrffaaccee ddrriivveerr uussbbhhiidd
u[19.830884 0.100933] ussbbhhiidd:: UUSSBB HHIIDD ccoorree ddrriivveerr
w[19.889902 0.059018] wmm88773311--ccooddeecc 00--000011aa:: FFaaiilleedd ttoo iissssuuee rreesseett:: --66
w[19.990919 0.101017] wmm88773311--ccooddeecc 00--000011aa:: aassoocc:: ffaaiilleedd ttoo pprroobbee CCOODDEECC wwmm88773311--ccooddeecc..00--000011aa:: --66
a[20.143904 0.152985] assoocc:: ffaaiilleedd ttoo iinnssttaannttiiaattee ccaarrdd AATT9911SSAAMM99XX55:: --66
A[20.250903 0.106999] ASSooCC:: aatt9911ssaamm99xx55eekkiinniitt ookk
A[20.314913 0.064010] ALLSSAA ddeevviiccee lliisstt::
[20.357905 0.042992] NNoo ssoouunnddccaarrddss ffoouunndd..
n[20.409144 0.051239] nffccoonnnnttrraacckk vveerrssiioonn 00..55..00 ((11666688 bbuucckkeettss,, 66667722 mmaaxx))
i[20.520923 0.111779] ippttaabblleess:: ((CC)) 22000000--22000066 NNeettffiilltteerr CCoorree TTeeaamm
T[20.617898 0.096975] TCCPP ccuubbiicc rreeggiisstteerreedd
N[20.665902 0.048004] NEETT:: RReeggiisstteerreedd pprroottoocc
as mentioned above, trying to use the flush command didn't solve the problem. BTW the last line printed out is not complete
I made a small image, my system boots within about 5 s (counted by myself ;) and grabserial still doesn't get all the output but the latest lines tell me it took already 15 s - has anyone checked if the timestamps are alright? or is it more a relative value. Anyways, I'm not sure anymore if this problem occurs because of grabserial, the transmission, my system or whatever
i tried this method:
cat /dev/ttyUSB0 | ts [%H.%M.%.S] > ${FILENAME}
and it's working (measures the right time and until i break it). This is getting more and more confusing :/
Sorry we couldn't get to the bottom of this. I've seen strange stuff when there were other readers of the serial port active (and they are consuming some of the characters from the device). This report is, by now, quite old. I'm closing this issue, as I can't reproduce it, and don't have any way to proceed. -- Tim
Hi,
I used grabserial for checking the startupcode by using the serial port of my target device, on the host side it's connected to a ttyUSB Port.
When I start grabserial only a few messages are shown and it stops printing out the lines (i know there are more, since i usually communicate with other serial programs like putty, without any problems). The program doesn't quit, it just freezes, i have to break it with [CTRL-C].
For debugging reasons, I added a loop at my startup, and then it printed out everything. So what i guess: the script is a bit slow on processing, since it only prints messages out as long as it physically receives anything. I already tried to force printing out the missing message by some flush commands, without any success.
I like that script, the results come in quiet handy, but unfortunately I can't use it as it is at the moment.