<kristianpaul> Fallenou: MAXIMUM_FRAME_SIZE is not implemented on your driver, why? how do you handle the  ethernet frames then?
<Fallenou> in the driver I use MLEN as the max len
<kristianpaul> in wich part fo the netwroking documentation is MLEN mentioned?
<Fallenou> MLEN = MSIZE - sizeof(struct m_hdr)
<kristianpaul> hmm may be mine is outdate.. Edition 4.10.99.0, for RTEMS 4.10.99.0
<Fallenou> is grepping through the source code, 1 min
<Fallenou> hum hum cannot find MSIZE
<Fallenou> but I am pretty sure MLEN is something like 1500
<Fallenou> damn I cannot find any #define MSIZE anywhere
<Fallenou> can you ?
<Fallenou> maybe it's in the compiler header :o
<Fallenou> is having a look
<Fallenou> ok yes it is
<Fallenou> MSIZE = 128
<Fallenou> hum hum so it's the starting size of an mbuf
<Fallenou> I guess it grows afterward
<Fallenou> looking at his code
<Fallenou> hum hum strange I cannot find where I allocate memory inside the mbuf :o
<Fallenou> could be our bug :)
<Fallenou> maybe we just have the basic 128 bytes
<Fallenou> and bigger frames will just overwrite memory
<Fallenou> I will ask Joel about that :)
<Fallenou> why the hell am I using MLEN in the packet structure instead of ETHERNET_FRAME_LENGTH
<Fallenou> let  fix that
<CIA-40> rtems-milkymist: Yann Sionneau master * r73572ad / c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c : fixed length of data member of mm_packet struct to be ETHERNET_FRAME_LENGTH instead of MLEN - http://bit.ly/gTn785
<Fallenou> kristianpaul: I pushed a fix for the ethernet driver
<Fallenou> I don't know if it will fix the FIFO problem
<Fallenou> but it surely was a big issue
<Fallenou> that would corrupt memory
<Fallenou> kristianpaul: please compile the bsp and try again to make it crash :)
<Fallenou> I emailed the rtems ML about that
<Fallenou> thanks for the feed back kristianpaul :)
<kristianpaul> Fallenou: he, i hope i works, i'll try it tomorrow or later midnight
<kristianpaul> I need sump to work on the avnet, but thanks to jevin that will be quick i think :-)
<kristianpaul> ergg i mean jackgassett:
<Fallenou> ok great, keep me posted on your tests :)
<Fallenou> I think this fix fixes something, but it may not be the problem you are talking about :)
<Fallenou> we'll see !
<kristianpaul> what is something?
<Fallenou> well I think it fixes a big memory corruption issue
<Fallenou> inside the ethernet driver
<Fallenou> when packets were > 128 bytes memory was overwritten somewhere
<Fallenou> which isn't really cool :)
<kristianpaul> heh
<Fallenou> look at the patch, it's a one-liner-patch
<adamw_> larsc, last time I used: modprobe ftdi_sio vendor=0x20b7 product=0x0713
<adamw_> to activate the JTAG/Serial pod
<larsc> adamw_?
<adamw_> if I erased VID/PID info, then I use UrJtag tool & tried to 'cable milkymist', but I got 'Couldn't connect to suitable USB device.
<adamw_> Error: usbconn/libftdi.c:372 usbconn_ftdi_common_open() ftdi/ftd2xx error: ftdi_usb_open_desc() failed: device not found
<adamw_> '
<adamw_> so this is reasonable. right?
<kristianpaul> 20591:09:33 < lekernel> rmmod ftdi_sio
<kristianpaul> 20592:09:34 < lekernel> modprobe ftdi_sio  vendor=0x... product=0x...
<kristianpaul> 20597:09:46 < wolfspraul> 1. "rmmod ftdi_sio"
<kristianpaul> 20598:09:47 < wolfspraul> 2. "modprobe ftdi_sio vendor=0x20b7 product=0x0713"
<kristianpaul> thats better
<larsc> adamw_: if the vid/pid info is erased it makes sense that the driver does not handle the device
<larsc> what does `lsusb` say?
<adamw_> yeah...Yanjun helped us to find the JTAG/Serial high speed bug on h/w
<adamw_> Bus 002 Device 038: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
<adamw_> this info( be noticed that I erased VID/PID already)
<larsc> so you should be able to get it working with `rmmod ftdi_sio; odprobe ftdi_sio vendor=0x0403 product=0x6010`
<kristianpaul> rmmod ftdi_sio; modprobe ftdi_sio vendor=0x0403 product=0x6010
<adamw_> hmm...with 'dmesg', I can see two device attached to ttyUSB0 and ttyUSB1
<kristianpaul> hmm
<adamw_> so I found that strange things that if I used "modprobe ftdi_sio vendor=0x20b7 product=0x0713" & programmed ftdi to be correct '0x20b7' & '0x0713'
<adamw_> then I just got only ttyUSB0 only, ttyUSB1 disappeared...what could cause this?
<kristianpaul> ttyUSB1 is actually jtag so should be okay
<kristianpaul> does it said too "Ignoring serial port reserved for JTAG" ?
<adamw_> no..
<adamw_> ttyUSB0 is jtag, ttyUSB1 is serial
<adamw_> this fixed the high speed bug
<adamw_> so after I fixed this, then I tried to follow all steps on http://en.qi-hardware.com/wiki/JTAG_Serial_Cable_run_1_for_Milkymist_One#Tests_and_Results
<adamw_> then I got only ttyUSB0 only.
<adamw_> so I erased VID/PID then 'dmesg'...i got two device attached!
<larsc> should be fine. there is code in the driver which tells to don't create a ttyUSB for the jtag port, when VID/PID matches those of the milkymist jtag adapter
<adamw_> but i got failed while running 'jtag''s 'cable milkymist'. :-) hope you understand my descriptions.
<kristianpaul> why you erased VID/PID? you mean in the eeprom?
<larsc> adamw_: did it fail for the MM VID/PID or the default VID/PID or both?
<adamw_> i didn't see the replied msg of 'dmsg' about attaching two device, so after I erased VID/PID then my laptop can detect both.
<kristianpaul> you dont need reply about attaching two devices
<adamw_> with MM VID/PID, I got ttyUSB0 only; with default VID/PDI, i got both.
<larsc> adamw_: thats the correct result
<adamw_> so what action I need to do now?
<kristianpaul> jtag
<kristianpaul> cable milkymist
<kristianpaul> detect
<adamw_> erase back to MM VID/PID...then jtag..cable milkymist ..detect ?
<larsc> yes
<kristianpaul> yes
<larsc> that should work
<adamw_> good...second.
<kristianpaul> nice bug fix btw :-)
<roh> at openmoko we always had 2 serials as far i can remember... and one vanished as soon as openocd was started
<larsc> urjtag checks the VID/PID and if it doesn't match you'll get the error you've seen
<kristianpaul> larsc: did you finally try openocd with lm32?
<kristianpaul> or was mwalle ..
<larsc> kristianpaul:  i couldn't getit to work
<kristianpaul> adamw_: does it works?
<adamw_> good, jtag port/coonection surely work well.
<adamw_> but my ttyUSB1 can't work well since I need to use it to test serial port connected to M1.
<kristianpaul> hmm?
<adamw_> flterm --port /dev/ttyUSB1 --kernel boot.bin
<adamw_> i used this to test 'serial' port
<kristianpaul> why /dev/ttyUSB1 and not /dev/ttyUSB0 ??
<adamw_> with 'dmesg', I still didn't the ttyUSB1
<kristianpaul> i still confused about your setup
<kristianpaul> you should not get ttyUSB1 jut ttyUSB0
<kristianpaul> try
<kristianpaul> flterm --port /dev/ttyUSB0 --kernel boot.bin
<adamw_> hm...oah...MAN! I totally made mistakes on last 97pcs productions...No one found.
<adamw_> yes, now just used ONLY ttyUSB0 to both 'jtag' & 'serial' ports.
<adamw_> god! my steps of productions were totally wrong!
<kristianpaul> did detect command in urjtag work?
<adamw_> yes, it works well now.;-)
<kristianpaul> You got ginally fpga id?
<kristianpaul> great !
<kristianpaul> gn8 then !
<adamw_> kristianpaul, larsc  Much thanks for helps
<adamw_> I'll send rework steps to list for high speed bug
<adamw_> kristianpaul, I think you can directly rework on your side.;-)
<adamw_> the ground of C3/R14/C27/C28 doesn't connect with system ground.
<kristianpaul> adamw_: yeah !
<kristianpaul> adamw_: i'll wait impatietly for the steps
<adamw_> you could just follow:
<adamw_> well...starts to edit wiki now...We do apology.
<kristianpaul> ah, just two points?
<adamw_> right!
<kristianpaul> i'll do it NOW
<adamw_> you can handle i think ...but for s/w and whole documents I must edit more...
<adamw_> ok..good to have you guys supports.
<adamw_> one question again: why my last time of production steps can work with ttyUSB1 (for flterm...) and ttyUSB0( for Urjtag..)?
<adamw_> i confuse myself now..:-(
<kristianpaul> no
<adamw_> kristianpaul, ?
<kristianpaul> actually you dont need to tell urjtag about ttyUSB
<adamw_> no, i meant that my last time production i used 'flterm --port /dev/ttyUSB1 ...' then it can work?
<kristianpaul> i wonder how/why it worked for you
<kristianpaul> It should not.. as serial port is attached as /dev/ttyUSB0
<adamw_> and now with fixed high speed problem...i can't use ttyUSB1 anymore...?
<kristianpaul> right
<kristianpaul> well
<kristianpaul> at least, you plug another usb2ttl cable or somthing that already take /dev&ttyUSB first so the jtagserial port will be ttyUSB1
<adamw_> so last time must have some things I still made mistake somewhere? o
<adamw_> you are right!
<adamw_> it indeed also shows 'Ignoring serial port reserved for JTAG' on ttyUSB0.
<kristianpaul> yes
<kristianpaul> !!!
<adamw_> great! yours now is high speed!
<kristianpaul> yes, was easy rework
<kristianpaul> and i'm bit sleepy now
<adamw_> what's command you typed?
<adamw_> ha...ok
<adamw_> sleep first
<kristianpaul> well i just ram some already made scripts for jtag to both flash bitstream and the app
<kristianpaul> it works as usual, now a bit faster it seems
<kristianpaul> ok, bed time now
<kristianpaul> chao !
<adamw_> cu!
<wpwrak> hmm, regarding that jtag fix, did anyone actually measure what the difference between full-speed and high-speed mm1 jtag is ?
<lekernel> rejon: playing with Ron a bit? ;)
<wpwrak> heh, ron isn't here. that's kinda convenient ;-)
<rejon> hahahah
<rejon> its good to expose what we need to be working on
<rejon> :)
<rejon> bbiab gotta eat
<wpwrak> rejon: i wouldn't mind the _exposing_ part. but if you had a limp, would you truly appreciate it if everyone you meet would mention it in every other sentence ?
<wpwrak> rejon: or, for that matter, if most people would drop that topic after a while, but there's one guy who keeps on with it.
<Fallenou> Is the minimac ethernet driver working well on Linux ?
<Fallenou> can someone give me the link of the repository ?
<Fallenou> thanks
<Fallenou> lekernel: the linux driver is using it's own crc32 function too btw :)
<larsc> it should use the generic one though
<Fallenou> yes that's what i've been told :p
<Fallenou> was just joking around
<lekernel> Fallenou: linux drivers aren't necessarily a good example
<lekernel> if I didn't go after the Linux driver, it's only because I don't depend on Linux
<Fallenou> sure sure
<Fallenou> anyway the linux driver is not doing anything in the RX top half irq handler
<lekernel> last time I tested, the ethernet linux driver didn't work at all
<Fallenou> is there any RX fifo problem with linux ?
<Fallenou> oooh
<Fallenou> ok ='
<Fallenou> so my looking at the code is irrelevant
<Fallenou> lol :')
<Fallenou> awesome
<mwalle> good evening
<Fallenou> hi mwalle
<lekernel> hi!