Hi, Peter, On Nov 15, 2014, at 9:31 PM, Peter Niu wrote:
> I am happy to tell you that your thought is perfect right! It's a tcpborph > problem. > Follow your instructions, I copy the tcpborph3 from soloboot file /sbin to > netboot file /usr/local/sbin. > Then run netboot again the overflow problem go away! > What's more interesting, I found the no-work-in-soloboot roach did not have > tcpborph3 in /sbin file .I copy a tcpborph3 from the other roach through > mount command to this soloboot problem roach.finally all of my roaches could > work normally in netboot without overflow. That's GREAT!!! > root@pf5:/usr/local/sbin# /etc/init.d/tcpborphserver start > tcpborphserver: ... loading roach mmap driver ... > insmod: can't read '/lib/modules/roach_mmap.ko': No such file or directory > version *3* using mmap > root@pf5:/usr/local/sbin# tcpborphserver3: about to go into background > hwmon: create hwsensor could not open /sys/bus/i2c/devices/0-0018/temp1_input > (No such file or directory) > hwmon: create hwsensor could not open /sys/bus/i2c/devices/0-0018/temp2_input > (No such file or directory) > hwmon: create hwsensor could not open /sys/bus/i2c/devices/0-0018/temp3_input > (No such file or directory) > ... The "insmod" error is harmless. You could eliminate it by commenting out the insmod line in the ROACH2's /etc/init.d/tcpborhserver script. The "hwmon" errors are probably not critical, but still a little troubling. The missing /sys/bus/i2c/devices/0-0018/* files should be created by the kernel if you are in fact running the kernel you reported on earlier: On Nov 13, 2014, at 7:22 PM, Peter Niu wrote: > [peter@roachserver ~]$ file -L /srv/roach_boot/boot/uImage > /srv/roach_boot/boot/uImage: u-boot legacy uImage, Linux-3.7.0-rc2+, > Linux/PowerPC, OS Kernel Image (gzip), 2231485 bytes, Mon Nov 19 15:30:35 > 2012, Load Address: 0x00500000, Entry Point: 0x005010D4, Header CRC: > 0x9BDC0E32, Data CRC: 0xF3A1DC96 That is the kernel version we use here and it does create the /sys/bus/i2c/devices/0-0018/* files on our ROACH2s. You can verify the running kernel version with the "uname" command: $ ssh root@pf1 uname -a Linux r2d020813 3.7.0-rc2+ #21 Mon Nov 19 09:30:32 SAST 2012 ppc GNU/Linux $ ssh root@pf1 'ls /sys/bus/i2c/devices/0-0018/temp?_input' /sys/bus/i2c/devices/0-0018/temp1_input /sys/bus/i2c/devices/0-0018/temp2_input /sys/bus/i2c/devices/0-0018/temp3_input /sys/bus/i2c/devices/0-0018/temp4_input /sys/bus/i2c/devices/0-0018/temp5_input Maybe the DHCP server is passing the ROACH a different kernel (i.e. uImage) filename? Maybe there are other i2c issues with your setup? > In the end, could you tell me what is the difference between tcpborph and > borph and uImage? uImage is just a u-boot loadable kernel image. BORPH (https://casper.berkeley.edu/wiki/BORPH) is an older interface to the FPGA "gateware devices" (e.g. software registers and shared BRAMs) that used a heavily modified Linux kernel that created virtual files in the /proc filesystem for each gateware device. These virtual files could be read from and written to like regular files. There was also an adaptation of the ELF file format to combine an FPGA loader program with an FPGA bitstream to allow one to execute a "BOF file" (short for "BORPH file", I think) as a Linux process on the ROACH's PPC. This approach had some shortcomings: 1) the modifications to the Linux kernel were very invasive and hard to keep porting forward to new kernel versions and 2) using file I/O to read/write gateware devices was slow and overly cumbersome. The newer approach (designed by Shanly Rajan) uses a kernel driver to allow the FPGA address space to be mapped directly into the address space of user processes. This kernel driver is much easier to port to newer kernel versions and provides for faster and less cumbersome access to the gateware devices. FWIW, the BOF files in use today are still essentially ELF files, though they are no longer executable. tcpborphserver is the name of a program that provides KATCP services over the network. It should probably be called "tcpkatcpserver", but the tcpborphserver name goes back to when it was used with BORPH-modified kernels and the /proc filesystem interface to gateware devices. Most user interaction with CASPER FPGA designs occurs through the KATCP interface provides by tcpborphserver. I think the program named "tcpborphserver2" uses the older BORPH interface to the FPGA while the program named "tcpborphserver3" uses the newer memory mapped interface. Hope this helps, Dave

