Difference: EmbeddedLinuxDev (1 vs. 88)

Revision 88
Changes from r85 to r88
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 107 to 107
 
    • Default MAC is set in packages/initscripts/mac/conf. But MAC given in packages/filesystem/rc.local is used.

  • Time synch via ntpdate (this is done for R2_20)
Changed:
<
<
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
>
>
    • Executable: devboard-R2_20/apps/ntpdate/. To compile automatically copy compile.pl to apps/ntpdate/ and run the script. Or compile by hand:
      • First compile libntp: you should not compile systime_s.c to avoid multiple definition errors. Then compile ntpdate.
      • Copy ntpdate to /var/diskless/etrax/bin/.
 
    • packages/filesystem/rc.local => /home/hadaq/etc/rc :
               #!/bin/sh
Line: 221 to 223
 

  • Time synch via ntpdate
Changed:
<
<
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
>
>
    • Executable: devboard-R2_20/apps/ntpdate/. To compile automatically copy compile.pl to apps/ntpdate/ and run the script. Or compile by hand:
      • First compile libntp: you should not compile systime_s.c to avoid multiple definition errors. Then compile ntpdate.
      • Copy ntpdate to /var/diskless/etrax/bin/.
 
    • packages/filesystem/rc.local => /home/hadaq/etc/rc :
               #!/bin/sh
Line: 271 to 275
 
    • Use readinode.c instead of ./devboard-R2_20/os/linux-2.6/fs/jffs2/readinode.c
    • Use config instead of ./devboard-R2_20/os/linux-2.6/.config
    • Use axis_config.h instead of ./devboard-R2_20/axis_config.h
Added:
>
>
  1. All NOR-flashes Axis have used have 64 kByte erase blocks while our flash chip (PC28F256P30B85 Intel StrataFlash Embedded Memory) has 128 kByte erase blocks. This means that we have to patch with configure_erase_block.patch the AXIS SDK to be able to set 128 kByte erase blocks.
    • cd devboard-R2_20/; patch -p 0 < configure_erase_block.patch

After patching we have to set 'Flash memory block size' to 131072 Bytes or 0x20000 in hex (when running 'make menuconfig'). This will generate new Makefile with --eraseblock=131072 option:
            $$SORTDIR mkfs.jffs2 --little-endian \
                --pagesize=$(PAGE_SIZE) \
                --cleanmarkers --eraseblock=0x20000 \
                --pad=$(PSIZE_jffs2_0) \
                --root=. > $(INAME_jffs2_0) ; \
 
  1. cd devboard-R2_20/; make menuconfig
    • Hardware Configuration
      • Processor ETRAX FS
Added:
>
>
      • (0x20000) Flash memory block size (bytes)
 
      • [*] Partition table
      • Partition table configuration:
        • (0x020000) Rescue partition size
Line: 656 to 674
 
META FILEATTACHMENT attr="h" comment="imp" date="1234972930" name="cfi_probe.c" path="cfi_probe.c" size="13105" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234979529" name="readinode.c" path="readinode.c" size="43896" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="Just an update of os/linux-2.6/.config" date="1259751191" name="config" path="config" size="17643" user="SergeyYurevich" version="1.2"
Added:
>
>
META FILEATTACHMENT attr="" comment="patch for 128 kByte erase blocks in our Flash chip" date="1274965183" name="configure_erase_block.patch" path="configure_erase_block.patch" size="5708" user="SergeyYurevich" version="1.1"
META FILEATTACHMENT attr="" comment="script to compile ntpdate for Etrax FS/MCM" date="1278692263" name="compile.pl.txt" path="compile.pl" size="2588" user="SergeyYurevich" version="1.1"
Revision 85
Changes from r82 to r85
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Changed:
<
<

Rules

>
>

Info

  • Where to find
    • Etrax FS fimage for flashing:
      • hadaq@depc187:/home/hadaq/etrax_soft/etrax_fs/devboard-R2_20/
    • Etrax FS fimage for debugging:
      • hadaq@hadeb05:/home/hadaq/soft/new/etrax_fs/devboard-R2_20/
      • kernel patch advised by Axis was applied but there is still problem with copying big files to a flash.
    • Etrax MCM fimage for flashing:
      • hadaq@hadeb05:/home/hadaq/soft/new/etrax_mcm/gen_image/out_image/etrax2??/
 
  • MAC addresses
Changed:
<
<
    • ETRAX FS boards: etrax[000-099]=00:40:8C:AD:E5:[01-99], etrax100=00:40:8C:AD:E5:A1
    • ETRAX MCM boards: etrax[101-130]=00:40:8C:AD:E5:[A1-D0]
>
>
    • ETRAX FS boards: etrax[000-099]=00:40:8C:AD:E5:[01-99], for example etrax001=00:40:8C:AD:E5:01
    • ETRAX FS boards: etrax[100-199]=00:40:8C:AD:E6:[01-99], for example etrax100=00:40:8C:AD:E6:00
    • ETRAX MCM boards: etrax[201-250]=00:40:8C:AD:E5:[A1-F0]
 

AXIS ETRAX 100LX MCM4+16

Line: 62 to 73
 
           #!/bin/sh
           MAC="00:40:8C:CD:00:02"
Changed:
<
<
/etc/init.d/net.eth0 stop
>
>
#/etc/init.d/net.eth0 stop
  ip link set eth0 address $MAC ip link set eth0 up export DHCP=1 /etc/init.d/net.eth0 restart sleep 5 nfs_ip=`tail -n1 /etc/resolv.conf | awk '{print $2}'`
Changed:
<
<
mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
>
>
ping -c 2 ${nfs_ip} mount -v -o proto=tcp,rsize=32768,wsize=32768 ${nfs_ip}:/var/diskless/etrax /home/hadaq
  sleep 1 if [ ! -e "/home/hadaq/etc" ] ; then
Changed:
<
<
mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
>
>
mount -v -o proto=tcp,rsize=32768,wsize=32768 ${nfs_ip}:/var/diskless/etrax /home/hadaq
  fi
Deleted:
<
<
export NFS_IP=${nfs_ip}
  sleep 1 . /home/hadaq/etc/rc
Line: 218 to 229
  export PATH="$PATH:/home/hadaq:/home/hadaq/bin:/home/hadaq/scripts"
Added:
>
>
  • Readout with DMA needs the following change:
    • packages/udev/iop_fw_load-R1_1_0/iop_fw_load
                #!/bin/sh
                HOTPLUG_FW_DIR=/home/hadaq/firmware
                #HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware
                echo 1 > /sys/$DEVPATH/loading
                cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
                echo 0 > /sys/$DEVPATH/loading
                exit 0
                
  Howto flash image:
  • On hadeb05
    • Login as root; cd /home/hadaq/soft/devboard-R2_20/; source init_env
Line: 242 to 265
 
  1. cd devboard-R2_20/; source init_env; ./configure
  2. Select which product configuration to use: 6. fs_nor
  3. For flash memory used in TRBv2:
Changed:
<
<
    • Use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
    • Use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
    • Use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
    • Use readinode.c instead of ./devboard_R2_20/os/linux-2.6/fs/jffs2/readinode.c
    • Use config instead of ./devboard_R2_20/os/linux-2.6/.config
    • Use axis_config.h instead of ./devboard_R2_20/axis_config.h
>
>
    • Use flash.c instead of ./devboard-R2_20/tools/build/fsboot/cbl/flash.c
    • Use cfi_probe.c instead of ./devboard-R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
    • Use axisflashmap.c instead of ./devboard-R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
    • Use readinode.c instead of ./devboard-R2_20/os/linux-2.6/fs/jffs2/readinode.c
    • Use config instead of ./devboard-R2_20/os/linux-2.6/.config
    • Use axis_config.h instead of ./devboard-R2_20/axis_config.h
 
  1. cd devboard-R2_20/; make menuconfig
    • Hardware Configuration
      • Processor ETRAX FS
Revision 82
Changes from r79 to r82
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 123 to 123
 

SDK 2.20

  • Path: hadeb05:/home/hadaq/soft/devboard-R2_20/
  • Linux kernel 2.6.26
Added:
>
>
  • Path: depc187:/home/hadaq/etrax_soft/etrax_fs/devboard-R2_20/
    • Linux kernel 2.6.26
 

Scheme of mapping temp sensor numbers to MAC addresses:
  • packages/filesystem/id2macTable : map of temp sensor numbers to MAC addresses.
Line: 217 to 219
 

Howto flash image:
Changed:
<
<
  • On hadeb05 under root: cd /home/hadaq/soft/devboard-R2_20/; source init_env
>
>
  • On hadeb05
    • Login as root; cd /home/hadaq/soft/devboard-R2_20/; source init_env
 
  • Switch BOOTSEL to 'A' (netboot) on the TRB and reset the board.
Changed:
<
<
  • Execute: boot_etraxfs -d eth0 -F -i ./fimage. Where eth1 - GSI network, eth0 - local network.
>
>
    • Execute: boot_etraxfs -d eth0 -F -i ./fimage. Where eth1 - GSI network, eth0 - local network.
 
  • Switch BOOTSEL to '0' and reset the TRB.
  • Check on the server that the board's MAC address is in the DHCP config file and IP is in /etc/hosts.
Added:
>
>
  • On hadesdaq02 for TRBs in cave in HADES VLAN
    • Login as root; cd /home/hadaq/etrax_soft/etrax_fs/devboard-R2_20/; source init_env
    • fimage should be copied to hadesdaq02 beforehand. On hadesdaq02 you cannot build fimage, you can only flash!
    • Switch BOOTSEL to 'A' and use boot_etraxfs d eth1 -F -i ./fimage to flash fimage. After flashing switch BOOTSEL to '0'.
    • Once you have fimage with proper block sizes flashed, you can use FTP to upgrade kernel and file system (you do not need to switch BOOTSEL):
      • ftp etraxp054
      • login as root
      • Run command: put fimage flash_all
 
Changed:
<
<
-- SergeyYurevich - 30 Nov 2009
>
>
-- SergeyYurevich - 16 Dec 2009
 

ETRAX FS, SDK 2.20, fast configuration step-by-step

  1. Download tarballs (devboard-R2_20.tar.gz, cris-dist-1.64-1.i386.rpm) from http://www.axis.com/products/dev_sdk/download_dist.php
Line: 242 to 253
 
      • Processor ETRAX FS
      • [*] Partition table
      • Partition table configuration:
Changed:
<
<
        • (0x010000) Rescue partition size
        • (0x350000) Flash1 size
>
>
        • (0x020000) Rescue partition size
        • (0x340000) Flash1 size
 
        • (0x4A0000) Flash2 size
        • (1) MTD partition number for rescue partition
        • (2) MTD partition number for kernel partition
Line: 272 to 283
 
    • Debug Configuration
      • [*] Enable strace support
    • Libraries Configuration
Changed:
<
<
>
>
      • [*] Enable OpenSSL support
 
      • Standard C library (glibc)
  1. cd apps/; tar -xvf tempsens.tar; cd apps/tempsens; make clean; make
  2. cd packages/initscripts; tar -xvf init_rc.tar
Line: 282 to 293
 
  1. cd packages/filesystem/
    • ln -s ../../apps/tempsens/tempsens tempsens
    • ln -s ../../id2macTable id2macTable
Added:
>
>
  1. Install stuff needed for NFS:
    • cd apps;
    • cvs -d :ext:hadaq@lxi003.gsi.de:/misc/hadesprojects/daq/cvsroot checkout etrax_apps_r20/tcp_wrappers_7.6
    • cd tcp_wrappers_7.6/; Adapt paths in Makefile
    • make linux
    • cd apps/etrax_apps_r20/; ln -s tcp_wrappers_7.6 tcp_wrappers
    • cvs -d :ext:hadaq@lxi003.gsi.de:/misc/hadesprojects/daq/cvsroot checkout etrax_apps_r20/portmap_5beta
    • cd portmap_5beta/; Adapt paths in Makefile
    • make
    • cp pmap_dump pmap_set portmap packages/filesystem/.
  2. Prepare packages/filesystem/
    • cd packages/filesystem/
    • cp rc.local packages/filesystem/
    • cp tempid2mac packages/filesystem/
    • ln -s ../../apps/tempsens/tempsens tempsens
    • ln -s ../../id2macTable id2macTable
    • Add these changes to packages/filesystem/Makefile
              $(INSTALL) $(OWN) -m 0777 rc.local      $(prefix)/etc
              $(INSTALL) $(OWN) -d                    $(prefix)/home
              $(INSTALL) $(OWN) -d                    $(prefix)/home/hadaq
              $(INSTALL) $(OWN) -m 0777 portmap       $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 pmap_set      $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 pmap_dump     $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 id2macTable   $(prefix)/etc
              $(INSTALL) $(OWN) -m 0777 rc.local      $(prefix)/etc
              $(INSTALL) $(OWN) -m 0777 tempsens      $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 tempid2mac    $(prefix)/sbin
              
  3. ./configure
  4. make

If you want to change only partition sizes then it is enough to run in the main directory:
  • Change partition sizes: make menuconfig
  • Change a byte-offset in kernel configuration (0x020000 gives a byte-offset of 131072):
    • make -C packages/os/linux-2.6 menuconfig
      • Drivers for built-in interfaces ---> (131072) Byte-offset of partition table sector
  • Build a new kernel: make -C packages/os/linux-2.6 install
  • ./configure
  • make images
 
Added:
>
>
-- SergeyYurevich - 15 Dec 2009
 

Flash TRB v1:

  1. to take 'root' permission, type su,
Revision 79
Changes from r76 to r79
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 53 to 53
 
           # start 'rc' script after all init script
           sub packages/initscripts/init_rc
Added:
>
>
# needed for NFS sub packages/initscripts/portmap
 

  • packages/filesystem/
Line: 68 to 70
  sleep 5 nfs_ip=`tail -n1 /etc/resolv.conf | awk '{print $2}'` mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
Added:
>
>
sleep 1 if [ ! -e "/home/hadaq/etc" ] ; then mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq fi
  export NFS_IP=${nfs_ip} sleep 1 . /home/hadaq/etc/rc
Line: 99 to 105
 

  • Prompt
Changed:
<
<
    • packages/shell/ash/profile/prompt/prompt.sh: PS1="[$PWD]$$"
>
>
    • packages/shell/ash/profile/prompt/prompt.sh: PS1="[$HOSTNAME:$PWD]"
 

  • HOSTNAME
    • packages/initscripts/hostname/conf: HOSTNAME="etrax101"
Line: 125 to 131
 

Settings:
  • packages/filesystem/
Added:
>
>
    • Files pmap_dump pmap_set portmap must be in packages/filesystem/. Needed for NFS RPC.
    • Also script tempid2mac to get MAC address from id2macTable must be in packages/filesystem/.
                 #!/bin/sh
                 TEMPID=`tempsens | grep ID | awk '{print $2}'`     #get ID from app: tempsens
                 LINE=`cat /etc/id2macTable | awk '{if($1==tempid) print $2}' tempid=$TEMPID`
                 echo $LINE
                 
    • Make soft links: tempsens -> ../../apps/tempsens/tempsens; id2macTable -> ../../id2macTable
 
    • packages/filesystem/rc.local. This script has hard-coded MAC, gets IP and nfs-server name via DHCP (nfs-server IP goes to /etc/resolv.conf), mounts /home/hadaq via nfs. Export NFS_IP for time synch via ntpdate.
                 #!/bin/sh
Line: 142 to 157
  nfs_ip=`tail -n1 /etc/resolv.conf |awk '{print $2}'` mount -v ${nfs_ip}:/var/diskless/etrax_fs /home/hadaq mount -o size=4M -t tmpfs tmpfs /dev/shm
Added:
>
>
sleep 1 if [ ! -e "/home/hadaq/etc" ] ; then mount -v ${nfs_ip}:/var/diskless/etrax_fs /home/hadaq fi
  export NFS_IP=${nfs_ip} sleep 1 . /home/hadaq/etc/rc
Changed:
<
<
>
>
    • Add to the end of packages/filesystem/Makefile:
              $(INSTALL) $(OWN) -m 0777 portmap       $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 pmap_set      $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 pmap_dump     $(prefix)/sbin
              $(INSTALL) $(OWN) -d                    $(prefix)/home/hadaq
              $(INSTALL) $(OWN) -m 0777 id2macTable   $(prefix)/etc
              $(INSTALL) $(OWN) -m 0777 rc.local      $(prefix)/etc
              $(INSTALL) $(OWN) -m 0777 tempsens      $(prefix)/sbin
              $(INSTALL) $(OWN) -m 0777 tempid2mac    $(prefix)/sbin
              
    • Add init_rc and portmap to configure-files/common/common like it is done for ETRAX MCM
 
  • Login (bash shell sequence):
Changed:
<
<
    • /etc/profile
>
>
    • /etc/profile (packages/shell/ash/profile/common/profile)
 
           ENV=/etc/shrc
           HOSTNAME=`/home/hadaq/bin/hostname`
Line: 164 to 194
  done unset FILE
Changed:
<
<
    • /etc/profile.d/path.sh
>
>
    • /etc/profile.d/path.sh (packages/shell/ash/profile/path/path.sh)
 

Changed:
<
<
PATH=/usr/local/bin:/usr/bin:/bin [ $(id -u) -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:/home/hadaq:/home/hadaq/bin:$PATH"
>
>
PATH=/usr/local/bin:/usr/bin:/bin:/home/hadaq:/home/hadaq/bin:/home/hadaq/scripts [ $(id -u) -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
  export PATH
Changed:
<
<
    • /etc/profile.d/prompt.sh
    • /home/hadaq/etc/profile
>
>
    • /etc/profile.d/prompt.sh (packages/shell/ash/profile/prompt/prompt.sh)
    • /home/hadaq/etc/profile (lxhadesdaq:/var/diskless/etrax_fs/etc/profile)
 
           export HOSTNAME=`/home/hadaq/bin/hostname`
           export HOSTIP=`/home/hadaq/bin/hostip`
Deleted:
<
<
PS1="[$HOSTNAME:$PWD]# "
 

  • Time synch via ntpdate
Line: 194 to 223
 
  • Switch BOOTSEL to '0' and reset the TRB.
  • Check on the server that the board's MAC address is in the DHCP config file and IP is in /etc/hosts.
Changed:
<
<
-- SergeyYurevich - 22 Sep 2009
>
>
-- SergeyYurevich - 30 Nov 2009

ETRAX FS, SDK 2.20, fast configuration step-by-step

  1. Download tarballs (devboard-R2_20.tar.gz, cris-dist-1.64-1.i386.rpm) from http://www.axis.com/products/dev_sdk/download_dist.php
  2. Unpack them and install
  3. cd devboard-R2_20/; source init_env; ./configure
  4. Select which product configuration to use: 6. fs_nor
  5. For flash memory used in TRBv2:
    • Use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
    • Use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
    • Use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
    • Use readinode.c instead of ./devboard_R2_20/os/linux-2.6/fs/jffs2/readinode.c
    • Use config instead of ./devboard_R2_20/os/linux-2.6/.config
    • Use axis_config.h instead of ./devboard_R2_20/axis_config.h
  6. cd devboard-R2_20/; make menuconfig
    • Hardware Configuration
      • Processor ETRAX FS
      • [*] Partition table
      • Partition table configuration:
        • (0x010000) Rescue partition size
        • (0x350000) Flash1 size
        • (0x4A0000) Flash2 size
        • (1) MTD partition number for rescue partition
        • (2) MTD partition number for kernel partition
        • (4) MTD partition number for rootfs partition
        • (3) MTD partition number for rwfs partition
        • [*] USB Device Filesystem
      • (A1) Control button address
    • General Configuration
      • Linux kernel (Linux 2.6.x)
      • Kernel serial console port (Serial port 0)
      • [*] Enable udev
      • Shell (dash)
      • [*] Start a console shell
    • Network Hardware Configuration
      • [*] Enable Ethernet support
      • (1) Network interfaces
      • (eth0) Device name for interface 1
    • Network Protocol Configuration
      • [*] Enable DHCP support
      • TELNETD support (Enable utelnetd support)
    • Network Application Configuration
      • [*] Enable ipsetd support
      • SSH support (No ssh support)
      • [*] Enable FTP client support
      • [*] Enable IPtables support
    • Debug Configuration
      • [*] Enable strace support
    • Libraries Configuration
      • [*] Enable OpenSSL support
      • Standard C library (glibc)
  7. cd apps/; tar -xvf tempsens.tar; cd apps/tempsens; make clean; make
  8. cd packages/initscripts; tar -xvf init_rc.tar
  9. cd packages/initscripts; tar -xvf portmap.tar
  10. Add init_rc, portmap to configure-files/common/common like described above for ETRAX MCM
  11. cp id2macTable devboard-R2_20/.
  12. cd packages/filesystem/
    • ln -s ../../apps/tempsens/tempsens tempsens
    • ln -s ../../id2macTable id2macTable
 
Deleted:
<
<

devboard_R2_20 howto

  1. download tarballs from http://www.axis.com/products/dev_sdk/download_dist.php
  2. unpack it and install
  3. for flash memory using in TRBv2 use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
  4. use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
  5. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
  6. use readinode.c instead of ./devboard_R2_20/os/linux-2.6/fs/jffs2/readinode.c
  7. use config instead of ./devboard_R2_20/os/linux-2.6/.config
 

Flash TRB v1:

  1. to take 'root' permission, type su,
Line: 501 to 580
 
META FILEATTACHMENT attr="h" comment="improved flash.c" date="1234957048" name="flash.c" path="flash.c" size="34727" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234972930" name="cfi_probe.c" path="cfi_probe.c" size="13105" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234979529" name="readinode.c" path="readinode.c" size="43896" user="RadekTrebacz" version="1.1"
Changed:
<
<
META FILEATTACHMENT attr="h" comment="imp" date="1234979568" name="config" path="config" size="17636" user="RadekTrebacz" version="1.1"
>
>
META FILEATTACHMENT attr="h" comment="Just an update of os/linux-2.6/.config" date="1259751191" name="config" path="config" size="17643" user="SergeyYurevich" version="1.2"
Revision 76
Changes from r73 to r76
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 147 to 147
  . /home/hadaq/etc/rc
Added:
>
>
  • Login (bash shell sequence):
    • /etc/profile
                 ENV=/etc/shrc
                 HOSTNAME=`/home/hadaq/bin/hostname`
                 export ENV HOSTNAME
                 . /home/hadaq/etc/profile
                 
    • /etc/shrc
                 for FILE in /etc/profile.d/*.sh ; do            
                   if [ -x $FILE ]; then                   
                      . $FILE                         
                   fi                                      
                 done
                 unset FILE
                 
    • /etc/profile.d/path.sh
                 PATH=/usr/local/bin:/usr/bin:/bin                      
                 [ $(id -u) -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:/home/hadaq:/home/hadaq/bin:$PATH"
                 export PATH
                 
    • /etc/profile.d/prompt.sh
    • /home/hadaq/etc/profile
                 export HOSTNAME=`/home/hadaq/bin/hostname`
                 export HOSTIP=`/home/hadaq/bin/hostip`
                 PS1="[$HOSTNAME:$PWD]# "
                 
 
  • Time synch via ntpdate
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
    • packages/filesystem/rc.local => /home/hadaq/etc/rc :
Line: 170 to 201
 
  1. unpack it and install
  2. for flash memory using in TRBv2 use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
  3. use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
Changed:
<
<
  1. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/
drivers/axisflashmap.c
>
>
  1. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
 
  1. use readinode.c instead of ./devboard_R2_20/os/linux-2.6/fs/jffs2/readinode.c
  2. use config instead of ./devboard_R2_20/os/linux-2.6/.config
Revision 73
Changes from r70 to r73
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 68 to 68
  sleep 5 nfs_ip=`tail -n1 /etc/resolv.conf | awk '{print $2}'` mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
Added:
>
>
export NFS_IP=${nfs_ip} sleep 1 . /home/hadaq/etc/rc
 
    • Files pmap_dump pmap_set portmap must be in packages/filesystem/. Needed for NFS RPC.
    • packages/filesystem/Makefile. This Makefile contains all file system structure.
Line: 86 to 89
 
    • To enable DHCP check packages/initscripts/net.eth0/conf. It must contain BOOTPROTO=dhcp.
    • Default MAC is set in packages/initscripts/mac/conf. But MAC given in packages/filesystem/rc.local is used.
Changed:
<
<
  • Time synch via ntpdate
>
>
  • Time synch via ntpdate (this is done for R2_20)
 
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
Changed:
<
<
    • packages/filesystem/rc.local => /home/hadaq/etc/rc => /home/hadaq/bin/ntpdate 140.181.90.22 (if etrax is in GSI VLAN)
>
>
    • packages/filesystem/rc.local => /home/hadaq/etc/rc :
               #!/bin/sh
               /home/hadaq/bin/ntpdate $NFS_IP
               export PATH="$PATH:/home/hadaq:/home/hadaq/bin:/home/hadaq/scripts"
               
 

  • Prompt
    • packages/shell/ash/profile/prompt/prompt.sh: PS1="[$PWD]$$"
Added:
>
>
  • HOSTNAME
    • packages/initscripts/hostname/conf: HOSTNAME="etrax101"
  Howto flash image:
On hadeb05 under root execute: boot_linux -d eth1 -F -i ./fimage. Where eth1 - GSI network, eth0 - local network.

Howto produce images for many Etrax MCM:
  • cd /home/hadaq/soft/new/etrax_mcm/gen_image/
  • To produce images for etrax101,102,103 execute perl script: ./gen_image.pl -e 101 -e 102 -e 103
Changed:
<
<
    • Script will replace MAC address in rc.local and mac/conf and reconfigure and recompile kernel
>
>
    • Script will replace MAC address in rc.local and mac/conf, set HOSTNAME and reconfigure and recompile kernel
 
    • The final images will go to /home/hadaq/soft/new/etrax_mcm/gen_image/out_image/etrax10?

AXIS ETRAX FS

Line: 112 to 123
 
  • packages/filesystem/tempid2mac : shell script to extract MAC address from a map.
  • packages/filesystem/tempsens->../../apps/tempsens/tempsens : binary for extracting temp sensor number.
Added:
>
>
Settings:
  • packages/filesystem/
    • packages/filesystem/rc.local. This script has hard-coded MAC, gets IP and nfs-server name via DHCP (nfs-server IP goes to /etc/resolv.conf), mounts /home/hadaq via nfs. Export NFS_IP for time synch via ntpdate.
                 #!/bin/sh
                 while [ ! -e "/sbin/tempid2mac" ]
                 do
                    sleep 1
                 done
                 MAC=`tempid2mac`
                 /etc/init.d/net.eth0 stop
                 ip link set eth0 address $MAC
                 ip link set eth0 up
                 export DHCP=1
                 /etc/init.d/net.eth0 restart
                 sleep 5
                 nfs_ip=`tail -n1 /etc/resolv.conf |awk '{print $2}'`
                 mount -v ${nfs_ip}:/var/diskless/etrax_fs /home/hadaq
                 mount -o size=4M -t tmpfs tmpfs /dev/shm
                 export NFS_IP=${nfs_ip}
                 sleep 1
                 . /home/hadaq/etc/rc
                 

  • Time synch via ntpdate
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
    • packages/filesystem/rc.local => /home/hadaq/etc/rc :
               #!/bin/sh
               /home/hadaq/bin/ntpdate $NFS_IP
               export PATH="$PATH:/home/hadaq:/home/hadaq/bin:/home/hadaq/scripts"
               
  Howto flash image:
  • On hadeb05 under root: cd /home/hadaq/soft/devboard-R2_20/; source init_env
  • Switch BOOTSEL to 'A' (netboot) on the TRB and reset the board.
Line: 119 to 163
 
  • Switch BOOTSEL to '0' and reset the TRB.
  • Check on the server that the board's MAC address is in the DHCP config file and IP is in /etc/hosts.
Changed:
<
<
-- SergeyYurevich - 17 Jun 2009
>
>
-- SergeyYurevich - 22 Sep 2009
 

devboard_R2_20 howto

  1. download tarballs from http://www.axis.com/products/dev_sdk/download_dist.php
Revision 70
Changes from r67 to r70
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Added:
>
>

Rules

  • MAC addresses
    • ETRAX FS boards: etrax[000-099]=00:40:8C:AD:E5:[01-99], etrax100=00:40:8C:AD:E5:A1
    • ETRAX MCM boards: etrax[101-130]=00:40:8C:AD:E5:[A1-D0]
 

AXIS ETRAX 100LX MCM4+16

Added:
>
>
 

SDK 2.20

  • Path: hadeb05:/home/hadaq/soft/new/etrax_mcm/devboard-R2_20/
  • Linux kernel 2.6.26
Line: 79 to 86
 
    • To enable DHCP check packages/initscripts/net.eth0/conf. It must contain BOOTPROTO=dhcp.
    • Default MAC is set in packages/initscripts/mac/conf. But MAC given in packages/filesystem/rc.local is used.
Changed:
<
<
Howto flash image:
under root execute: boot_linux -d eth1 -F -i ./fimage
>
>
  • Time synch via ntpdate
    • Executable: devboard-R2_20/apps/ntpdate/ (first compile libntp). Copy ntpdate to /home/hadaq/bin/.
    • packages/filesystem/rc.local => /home/hadaq/etc/rc => /home/hadaq/bin/ntpdate 140.181.90.22 (if etrax is in GSI VLAN)

  • Prompt
    • packages/shell/ash/profile/prompt/prompt.sh: PS1="[$PWD]$$"

Howto flash image:
On hadeb05 under root execute: boot_linux -d eth1 -F -i ./fimage. Where eth1 - GSI network, eth0 - local network.
 

Howto produce images for many Etrax MCM:
  • cd /home/hadaq/soft/new/etrax_mcm/gen_image/
Line: 87 to 101
 
    • Script will replace MAC address in rc.local and mac/conf and reconfigure and recompile kernel
    • The final images will go to /home/hadaq/soft/new/etrax_mcm/gen_image/out_image/etrax10?
Added:
>
>

AXIS ETRAX FS

SDK 2.20

  • Path: hadeb05:/home/hadaq/soft/devboard-R2_20/
  • Linux kernel 2.6.26

Scheme of mapping temp sensor numbers to MAC addresses:
  • packages/filesystem/id2macTable : map of temp sensor numbers to MAC addresses.
  • packages/filesystem/tempid2mac : shell script to extract MAC address from a map.
  • packages/filesystem/tempsens->../../apps/tempsens/tempsens : binary for extracting temp sensor number.

Howto flash image:
  • On hadeb05 under root: cd /home/hadaq/soft/devboard-R2_20/; source init_env
  • Switch BOOTSEL to 'A' (netboot) on the TRB and reset the board.
  • Execute: boot_etraxfs -d eth0 -F -i ./fimage. Where eth1 - GSI network, eth0 - local network.
  • Switch BOOTSEL to '0' and reset the TRB.
  • Check on the server that the board's MAC address is in the DHCP config file and IP is in /etc/hosts.
  -- SergeyYurevich - 17 Jun 2009

devboard_R2_20 howto

Revision 67
Changes from r64 to r67
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

AXIS ETRAX 100LX MCM4+16

Line: 6 to 6
 
  • Path: hadeb05:/home/hadaq/soft/new/etrax_mcm/devboard-R2_20/
  • Linux kernel 2.6.26
Changed:
<
<
Installation:
>
>
Installation:
 
  • source init_env
           export AXIS_TOP_DIR=`command pwd`
Line: 17 to 17
  export AXIS_KERNEL_DIR="$AXIS_TOP_DIR/os/linux-2.6"
  • ./configure
Changed:
<
<
  • make menuconfigure
>
>
  • make menuconfig
 
  • Do settings discribed below.
Added:
>
>
  • Do kernel configuration if needed (some drivers might be missing)
    • cd os/linux-2.6/
    • make menuconfig
    • Change settings
 
  • ./configure
  • make
  • Look at the final target system in target/cris-axis-linux-gnu/
Changed:
<
<
Settings:
>
>
Settings:
 
  • packages/initscripts/init_rc/rc.
    • This script executed rc.local.

Line: 44 to 48
  sub packages/initscripts/init_rc
Added:
>
>
  • packages/filesystem/
 
  • packages/filesystem/rc.local. This script has hard-coded MAC, gets IP and nfs-server name via DHCP (nfs-server IP goes to /etc/resolv.conf), mounts /home/hadaq via nfs.
            #!/bin/sh
Line: 57 to 62
  nfs_ip=`tail -n1 /etc/resolv.conf | awk '{print $2}'` mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
Added:
>
>
    • Files pmap_dump pmap_set portmap must be in packages/filesystem/. Needed for NFS RPC.
    • packages/filesystem/Makefile. This Makefile contains all file system structure.
                 $(INSTALL) $(OWN) -m 0777 rc.local   $(prefix)/etc
                 $(INSTALL) $(OWN) -d         $(prefix)/home
                 $(INSTALL) $(OWN) -d         $(prefix)/home/hadaq
                 $(INSTALL) $(OWN) -m 0777 portmap   $(prefix)/sbin
                 $(INSTALL) $(OWN) -m 0777 pmap_set   $(prefix)/sbin
                 $(INSTALL) $(OWN) -m 0777 pmap_dump   $(prefix)/sbin
                 
 
Changed:
<
<
  • The kernel partition must be writable (by default it is read only) since nfs-server IP goes to /etc/resolv.conf which is on kernel partition.
    • The present configuration of partitions is given in ptablespec file.
    • To change ro to rw for a kernel partition: open configure-files/common/common, go to # Kernel partition line and change partition ptable type=kernel name=kernel csum=yes to partition ptable type=kernel name=kernel csum=no. Note that csum is written to main Makefile as PCSUM_kernel (yes/no = ro/rw).
    • Check main Makefile. You might need to change PCSUM_kernel = yes to PCSUM_kernel = no
    • Set partition sizes: make menuconfig -> Hardware conf. -> Partition Table conf.
      • Rescue partition size (not important, can be set to a minimum)
      • Flash1 size (kernel partition, maximum 4 MB)
      • Flash2 size (not important, can be set to a minimum)
>
>
  • Partitions: one must be careful with changing sizes of partitions. This can lead to an error and force read-only file system during boot. Total size is 4 MB.
 

  • Network settings:
    • To enable DHCP check packages/initscripts/net.eth0/conf. It must contain BOOTPROTO=dhcp.
    • Default MAC is set in packages/initscripts/mac/conf. But MAC given in packages/filesystem/rc.local is used.
Changed:
<
<
-- SergeyYurevich - 09 Jun 2009
>
>
Howto flash image:
under root execute: boot_linux -d eth1 -F -i ./fimage

Howto produce images for many Etrax MCM:
  • cd /home/hadaq/soft/new/etrax_mcm/gen_image/
  • To produce images for etrax101,102,103 execute perl script: ./gen_image.pl -e 101 -e 102 -e 103
    • Script will replace MAC address in rc.local and mac/conf and reconfigure and recompile kernel
    • The final images will go to /home/hadaq/soft/new/etrax_mcm/gen_image/out_image/etrax10?

-- SergeyYurevich - 17 Jun 2009
 

devboard_R2_20 howto

  1. download tarballs from http://www.axis.com/products/dev_sdk/download_dist.php
Revision 64
Changes from r61 to r64
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Added:
>
>

AXIS ETRAX 100LX MCM4+16

SDK 2.20

  • Path: hadeb05:/home/hadaq/soft/new/etrax_mcm/devboard-R2_20/
  • Linux kernel 2.6.26

Installation:
  • source init_env
           export AXIS_TOP_DIR=`command pwd`
           echo "Prepending \"$AXIS_TOP_DIR/tools/build/bin\" to PATH."
           export PATH="$AXIS_TOP_DIR/tools/build/bin:$PATH"
           echo "Prepending \"/home/hadaq/soft/cris/bin\" to PATH."
           export PATH="/home/hadaq/soft/cris/bin:$PATH"
           export AXIS_KERNEL_DIR="$AXIS_TOP_DIR/os/linux-2.6"
           
  • ./configure
  • make menuconfigure
  • Do settings discribed below.
  • ./configure
  • make
  • Look at the final target system in target/cris-axis-linux-gnu/

Settings:
  • packages/initscripts/init_rc/rc.
    • This script executed rc.local.
                 #! /bin/sh
                 . /etc/init.d/functions.sh
                 begin "Init /etc/rc.local"
                 while [ ! -e "/etc/rc.local" ]
                 do
                    sleep 1
                 done
                 /etc/rc.local
                 end $?
                 
    • Do not forget Makefile and .target-makefrag: AXIS_BUILDTYPE=cris-axis-linux-gnu
    • In configure-files/common/common put at the very end the following:
                 # start 'rc' script after all init script
                 sub packages/initscripts/init_rc
                 

  • packages/filesystem/rc.local. This script has hard-coded MAC, gets IP and nfs-server name via DHCP (nfs-server IP goes to /etc/resolv.conf), mounts /home/hadaq via nfs.
            #!/bin/sh
            MAC="00:40:8C:CD:00:02"
            /etc/init.d/net.eth0 stop 
            ip link set eth0 address $MAC 
            ip link set eth0 up
            export DHCP=1
            /etc/init.d/net.eth0 restart 
            sleep 5
            nfs_ip=`tail -n1 /etc/resolv.conf | awk '{print $2}'`
            mount -v ${nfs_ip}:/var/diskless/etrax /home/hadaq
            

  • The kernel partition must be writable (by default it is read only) since nfs-server IP goes to /etc/resolv.conf which is on kernel partition.
    • The present configuration of partitions is given in ptablespec file.
    • To change ro to rw for a kernel partition: open configure-files/common/common, go to # Kernel partition line and change partition ptable type=kernel name=kernel csum=yes to partition ptable type=kernel name=kernel csum=no. Note that csum is written to main Makefile as PCSUM_kernel (yes/no = ro/rw).
    • Check main Makefile. You might need to change PCSUM_kernel = yes to PCSUM_kernel = no
    • Set partition sizes: make menuconfig -> Hardware conf. -> Partition Table conf.
      • Rescue partition size (not important, can be set to a minimum)
      • Flash1 size (kernel partition, maximum 4 MB)
      • Flash2 size (not important, can be set to a minimum)

  • Network settings:
    • To enable DHCP check packages/initscripts/net.eth0/conf. It must contain BOOTPROTO=dhcp.
    • Default MAC is set in packages/initscripts/mac/conf. But MAC given in packages/filesystem/rc.local is used.

-- SergeyYurevich - 09 Jun 2009
 

devboard_R2_20 howto

  1. download tarballs from http://www.axis.com/products/dev_sdk/download_dist.php
  2. unpack it and install
  3. for flash memory using in TRBv2 use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
Deleted:
<
<
  1. change a config of kernel:
    • "Drivers for built-in interfaces":
      • 'Axis flash-map support' = on,
      • CONFIG_ETRAX_PTABLE_SECTOR = 131072, instead of 65536 /* not yes, sermon doent work*/
    • 'Memory Technology Devices' => 'RAM/ROM/Flash chip drivers'
      • CONFIG_MTD_CFI_ADV_OPTIONS = on,
      • CONFIG_MTD_CFI_GEOMETRY = on,
      • only CONFIG_MTD_MAP_BANK_WIDTH_4 and CONFIG_MTD_CFI_I2 is on.
      • 'Support for Intel/Sharp flash chips' = on,
    • 'Hardware setup' -> Etrax FS options
      • CONFIG_ETRAX_FLASH_BUSWIDTH = 4, instead of 2
      • CONFIG_ETRAX_SDRAM_GRP0_CONFIG = 0x156c, instead of 0x114b
 
  1. use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
Changed:
<
<
  1. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
>
>
  1. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/
drivers/axisflashmap.c
  1. use readinode.c instead of ./devboard_R2_20/os/linux-2.6/fs/jffs2/readinode.c
  2. use config instead of ./devboard_R2_20/os/linux-2.6/.config
 

Flash TRB v1:

  1. to take 'root' permission, type su,
  2. change directory for hadeb05:/home/hadaq/soft/devboard-R2_01/
Line: 196 to 260
 
  1. Copy a FS enabled kernelconfig-2.6 to the SDK root directory.
  2. make init_env && . init_env
  3. make -C packages/os/linux-2.6 crisv32-axis-linux-gnu
Changed:
<
<
  1. make -C packages/os/linux-2.6 menuconfig. Remember in section Hardware setup the Processor type should be ETRAX-FS-V32.
>
>
  1. make -C packages/os/linux-2.6 menuconfig. Remember in section Hardware setup the Processor type should be ETRAX-FS-V32 and DRAM size = 128.
 
  1. make
  2. To flash the board use the boot_etraxfs script.
    1. To write the whole flash using the host NIC eth1: boot_etraxfs -F -i /path/to/fimage -d eth1;
Line: 315 to 378
 
META FILEATTACHMENT attr="h" comment="kimage for booting to RAM" date="1184321507" name="kimage_onlyram" path="kimage_onlyram" size="3350528" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="improved flash.c" date="1234957048" name="flash.c" path="flash.c" size="34727" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234972930" name="cfi_probe.c" path="cfi_probe.c" size="13105" user="RadekTrebacz" version="1.1"
Added:
>
>
META FILEATTACHMENT attr="h" comment="imp" date="1234979529" name="readinode.c" path="readinode.c" size="43896" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234979568" name="config" path="config" size="17636" user="RadekTrebacz" version="1.1"
Revision 61
Changes from r58 to r61
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Changed:
<
<
>
>

devboard_R2_20 howto

  1. download tarballs from http://www.axis.com/products/dev_sdk/download_dist.php
  2. unpack it and install
  3. for flash memory using in TRBv2 use flash.c instead of ./devboard_R2_20/tools/build/fsboot/cbl/flash.c
  4. change a config of kernel:
    • "Drivers for built-in interfaces":
      • 'Axis flash-map support' = on,
      • CONFIG_ETRAX_PTABLE_SECTOR = 131072, instead of 65536 /* not yes, sermon doent work*/
    • 'Memory Technology Devices' => 'RAM/ROM/Flash chip drivers'
      • CONFIG_MTD_CFI_ADV_OPTIONS = on,
      • CONFIG_MTD_CFI_GEOMETRY = on,
      • only CONFIG_MTD_MAP_BANK_WIDTH_4 and CONFIG_MTD_CFI_I2 is on.
      • 'Support for Intel/Sharp flash chips' = on,
    • 'Hardware setup' -> Etrax FS options
      • CONFIG_ETRAX_FLASH_BUSWIDTH = 4, instead of 2
      • CONFIG_ETRAX_SDRAM_GRP0_CONFIG = 0x156c, instead of 0x114b
  5. use cfi_probe.c instead of ./devboard_R2_20/os/linux-2.6/drivers/mtd/chips/cfi_probe.c
  6. use axisflashmap.c instead of ./devboard_R2_20/os/linux-2.6/arch/cris/arch-v32/drivers/axisflashmap.c
 

Flash TRB v1:

  1. to take 'root' permission, type su,
  2. change directory for hadeb05:/home/hadaq/soft/devboard-R2_01/
Line: 286 to 303
 

Added:
>
>

 
META FILEATTACHMENT attr="" comment="2. version, put it to: ./packages/os/linux-2.6/Makefile" date="1158668960" name="Makefile" path="Makefile" size="5040" user="RadekTrebacz" version="1.2"
Changed:
<
<
META FILEATTACHMENT attr="" comment="2. ver: put it to: os/linux-2.6/arch/cris/arch/drivers/axisflashmap.c" date="1158669006" name="axisflashmap.c" path="axisflashmap.c" size="12967" user="RadekTrebacz" version="1.1"
>
>
META FILEATTACHMENT attr="h" comment="improvede" date="1234966504" name="axisflashmap.c" path="axisflashmap.c" size="19465" user="RadekTrebacz" version="1.2"
 
META FILEATTACHMENT attr="" comment="version 2: put in the main directory" date="1158669383" name="kernelconfig-2.6" path="kernelconfig-2.6" size="13319" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="kimage for booting to RAM" date="1184321507" name="kimage_onlyram" path="kimage_onlyram" size="3350528" user="RadekTrebacz" version="1.1"
Added:
>
>
META FILEATTACHMENT attr="h" comment="improved flash.c" date="1234957048" name="flash.c" path="flash.c" size="34727" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="h" comment="imp" date="1234972930" name="cfi_probe.c" path="cfi_probe.c" size="13105" user="RadekTrebacz" version="1.1"
Revision 58
Changes from r55 to r58
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Line: 6 to 6
 
  1. to take 'root' permission, type su,
  2. change directory for hadeb05:/home/hadaq/soft/devboard-R2_01/
  3. type . init_env
Added:
>
>
  1. set SW1 on the board to 3 [from 7]
 
  1. ./flashit -d eth1 -i ./de-etrax0XX/fimage, where XX is number of TRB
Added:
>
>
  1. set SW1 on the board to 7 [from 3]
 

Flash TRB v2

  1. to take 'root' permission, type su,
  2. type . init_env
  3. change directory for hadeb05:/home/hadaq/soft/devboard-fsv2/
  4. boot_etraxfs -d eth1 -i ./de-etrax0XX/kimage, where XX is number of TRB
Added:
>
>

Flash TRB v2 permanently

  1. to take 'root' permission, type su,
  2. type . init_env
  3. change directory for hadeb05:/home/hadaq/soft/devboard-R2_10/
  4. boot_etraxfs -d eth0 -F -i ./fimage
  5. set SW1 on the board to 0 [from A]
 

to start DAQ for 1 TRB:

  1. trb_ip - contains the IP of trb for other scripts,
Line: 251 to 259
  mymtd = flash_probe(); --> mymtd = NULL; this is not necessary ?

Push new kernel FS from RAM and flash after

Added:
>
>
 
  1. cd hadaq@hadeb05:~/soft/devboard-fs_onlyram
  2. su to have root permition
  3. . init_env
Line: 278 to 289
 
META FILEATTACHMENT attr="" comment="2. version, put it to: ./packages/os/linux-2.6/Makefile" date="1158668960" name="Makefile" path="Makefile" size="5040" user="RadekTrebacz" version="1.2"
META FILEATTACHMENT attr="" comment="2. ver: put it to: os/linux-2.6/arch/cris/arch/drivers/axisflashmap.c" date="1158669006" name="axisflashmap.c" path="axisflashmap.c" size="12967" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="" comment="version 2: put in the main directory" date="1158669383" name="kernelconfig-2.6" path="kernelconfig-2.6" size="13319" user="RadekTrebacz" version="1.1"
Added:
>
>
META FILEATTACHMENT attr="h" comment="kimage for booting to RAM" date="1184321507" name="kimage_onlyram" path="kimage_onlyram" size="3350528" user="RadekTrebacz" version="1.1"
Revision 55
Changes from r52 to r55
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Added:
>
>

Flash TRB v1:

  1. to take 'root' permission, type su,
  2. change directory for hadeb05:/home/hadaq/soft/devboard-R2_01/
  3. type . init_env
  4. ./flashit -d eth1 -i ./de-etrax0XX/fimage, where XX is number of TRB

Flash TRB v2

  1. to take 'root' permission, type su,
  2. type . init_env
  3. change directory for hadeb05:/home/hadaq/soft/devboard-fsv2/
  4. boot_etraxfs -d eth1 -i ./de-etrax0XX/kimage, where XX is number of TRB

to start DAQ for 1 TRB:

  1. trb_ip - contains the IP of trb for other scripts,
  2. INIT_FPGA - to program FPGA,
  3. RESET_TDC - to reset TDCs on the TRB [before that one has to reset CTU],
  4. START_READOUT - to start readout on TRB [after that one has to start CTU],
  5. EVTBUILDER - open eventbuilder, netmem and sniffer.

to start DAQ for 3 TRB:

  1. trb_ip , trb_ip2 , trb_ip3 ,
  2. INIT_FPGA_FOR_ALL ,
  3. RESET_TDC_FOR_ALL ,
  4. START_READOUT_FOR_ALL ,
  5. EVTBUILDER_FOR_ALL .

another things:
  1. LOG_IN - to log into trb.

 

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
  • Set environment: . init_env
Line: 237 to 267
 
  1. cat /tmp/fimage > /dev/cflash0
  2. switch the BOOT SELECT1 to NOR Flash (it's 0),
  3. reset the board
Added:
>
>

additional settings for Etrax FS

  1. to force changing MAC address I changed packages/initscripts/mac/rc and packages/initscripts/mac/Makefile,
  -- RadekTrebacz - 26 Sep 2005

Revision 52
Changes from r49 to r52
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Added:
>
>
 

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
  • Set environment: . init_env
Line: 208 to 210
  -> 'Support for Intel/Sharp flash chips' = on,
  1. overwrite the Makefile in the ./packages/os/linux-2.6/Makefile,
  2. overwrite axisflashmap.c in the ./os/linux-2.6/arch/cris/arch/drivers/axisflashmap.c
Added:
>
>
  1. modify os/linux-2.6/arch/cris/drivers/axisflashmap.c in the function init_axis_flash :
    comment out the line:
mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page);
The line: mymtd = flash_probe(); change to mymtd = NULL;
 
  1. make -C packages/os/linux-2.6 install
  2. make
Deleted:
<
<
TIP Maybe next modifications will be needed:
  Modify os/linux-2.6/arch/cris/drivers/axisflashmap.c in the function init_axis_flash :
Deleted:
<
<
mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page); --> mymtd=NULL
  mymtd = flash_probe(); --> mymtd = NULL; this is not necessary ?
Changed:
<
<

Try to boot from RAM and flash after

>
>

Push new kernel FS from RAM and flash after

 
  1. cd hadaq@hadeb05:~/soft/devboard-fs_onlyram
  2. su to have root permition
  3. . init_env
Line: 230 to 234
 
  1. telnet 192.168.0.90, type the login and password,
  2. cd /tmp
  3. eraseflash -v /dev/cflash0
Changed:
<
<
  1. cat /tmp/rescue.img /tmp/flash1.img /tmp/flash2.img > /dev/cflash0
>
>
  1. cat /tmp/fimage > /dev/cflash0
 
  1. switch the BOOT SELECT1 to NOR Flash (it's 0),
  2. reset the board
-- RadekTrebacz - 26 Sep 2005
Revision 49
Changes from r46 to r49
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
  • Set environment: . init_env
Changed:
<
<
  • Voltage switch in the lab in GSI: http://haepc03.gsi.de, user: admin, pass: oscypeczek smile
>
>
  • Voltage switch in the lab in GSI: http://haepc02.gsi.de, user: admin, pass: oscypeczek smile
 
How to compile the application for the board
  1. You have to create new directory in the ~/devboard-work_2.4/apps/
  2. Type: make cris-axis-linux-gnu in the ~/devboard-work_2.4/ directory
Line: 171 to 171
  http://developer.axis.com/wiki/doku.php?id=32_bits_wide_flash
Added:
>
>
 

Second version od dev_system -> only RAM

Deleted:
<
<
According page: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs:
 
Added:
>
>
According page: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs:
  1. install
  2. make menuconfig, change Hardware Configuration > =Processor for ETRAX_FS,
  3. ./configure,
  4. make init_env && . init_env
 
  1. overwrite kernelconfig-2.6 in the main directory,
  2. make -C packages/os/linux-2.6 crisv32-axis-linux-gnu,
  3. make -C packages/os/linux-2.6 menuconfig,
  4. make
    According page:http://developer.axis.com/wiki/doku.php?id=32_bits_wide_flash
  5. remove the line:
Changed:
<
<
'$(INSTALL) -m 0644 mnt.romfs_meta.txt $(prefix)/mnt/romfs_meta.txt' from 'packages/romfs_meta/common/Makefile'
  1. modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file.
>
>
$(INSTALL) -m 0644 mnt.romfs_meta.txt $(prefix)/mnt/romfs_meta.txt from packages/romfs_meta/common/Makefile
  1. modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file(Ignorecontents: flash).
 
  1. make -C packages/romfs_meta/common install
Changed:
<
<
  1. comment out the section 'MOUNT' in file 'packages/initscripts/common/linuxrc'
>
>
  1. comment out the section MOUNT in file packages/initscripts/common/linuxrc
 
  1. make -C packages/initscripts/common install
  2. make -C packages/os/linux-2.6 menuconfig:
    1. => second 'General Setup' => 'Kernel command line' ->
Line: 206 to 211
 
  1. make -C packages/os/linux-2.6 install
  2. make
Added:
>
>
TIP Maybe next modifications will be needed:
Modify os/linux-2.6/arch/cris/drivers/axisflashmap.c in the function init_axis_flash :
mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page); --> mymtd=NULL
mymtd = flash_probe(); --> mymtd = NULL; this is not necessary ?
 

Try to boot from RAM and flash after

Changed:
<
<
  1. go to the: hadaq@hadeb05:~/soft/devboard-fs_onlyram
  2. su to have root permition
>
>
  1. cd hadaq@hadeb05:~/soft/devboard-fs_onlyram
  2. su to have root permition
 
  1. . init_env
  2. switch the BOOT SELECT1 to Network RT/TX (it's 5),
  3. boot_etraxfs -d eth0 -i ./kimage
Changed:
<
<
  1. cd ~/soft/flash
>
>
  1. cd ~/soft/devboard-fs_32v2
 
  1. ftp 192.168.0.90, type the login and password,
  2. ftp> cd tmp
Changed:
<
<
  1. ftp> put rescue.img
  2. ftp> put flash1.img
  3. ftp> put flash2.img
>
>
  1. ftp> put fimage
 
  1. ftp> exit
  2. telnet 192.168.0.90, type the login and password,
  3. cd /tmp
Revision 46
Changes from r43 to r46
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
Line: 135 to 135
 
  1. Add to the $PATH the path to the new cris-v32 crosscompiler.
  2. Install a fresh SDK use the ./install script. When asked which product to configure for press enter to use the default.
  3. Run the make menuconfig > in section Hardware Configuration change the Processor for =ETRAX FS.
Changed:
<
<
  1. Run the configure script to download all packages. If configure says the compiler is too new > edit =./configure-files/source/functions and comment the lines 2339-2342.
>
>
  1. Run the configure script to download all packages. If configure says the compiler is too new -> edit ./configure-files/source/functions and comment the lines 2339-2342.
 
  1. Copy a FS enabled kernelconfig-2.6 to the SDK root directory.
  2. make init_env && . init_env
  3. make -C packages/os/linux-2.6 crisv32-axis-linux-gnu
Line: 160 to 160
 
  1. Modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file and rebuild the package with make -C packages/romfs_meta/common install. (This causes the /etc directory to be part of the cramfs file system instead of being writable).
  2. Modify the file packages/initscripts/common/linuxrc by commenting out the whole section starting with MOUNT= , ending with the first 'fi' after that and rebuild the package with make -C packages/initscripts/common install. (This stops the init script from trying to mount the jffs2 filesystem).
  3. Overwrite packages/os/linux-2.6/Makefile with file in the Attachment
Added:
>
>
  • Makefile: packages/os/linux-2.6/Makefile
 
  1. Modify os/linux-2.6/arch/cris/drivers/axisflashmap.c in the function init_axis_flash :
    mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page); --> mymtd=NULL
    mymtd = flash_probe(); --> mymtd = NULL; this is not necessary ?
  2. Modify the kernel as follows: do make -C packages/os/linux-2.6 menuconfig. In the second General Setup menu, modify the Kernel command line so that the root device is mtdblock0 instead of mtdblock3. (This causes linux to search for the init script in the first mtd device, rather than the fourth, which is consistent with a RAM-only image). I.e. the new kernel command line is 'root=/dev/mtdblock0 init=/linuxrc'. Rebuild the kernel with make -C packages/os/linux-2.6 install.
  3. Recreate all images with 'make images'
    TIP To enable port A (program FPGA via jam) modify CONFIG_ETRAX_PA_BUTTON_BITMASK for 0x0, CONFIG_ETRAX_PA_CHANGEABLE_DIR for 0x0F and CONFIG_ETRAX_PA_CHANGEABLE_BITS for 0xFF
Added:
>
>

http://developer.axis.com/wiki/doku.php?id=32_bits_wide_flash

Second version od dev_system -> only RAM

According page: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs:

  1. overwrite kernelconfig-2.6 in the main directory,
  2. make -C packages/os/linux-2.6 crisv32-axis-linux-gnu,
  3. make -C packages/os/linux-2.6 menuconfig,
  4. make
    According page:http://developer.axis.com/wiki/doku.php?id=32_bits_wide_flash
  5. remove the line: '$(INSTALL) -m 0644 mnt.romfs_meta.txt $(prefix)/mnt/romfs_meta.txt' from 'packages/romfs_meta/common/Makefile'
  6. modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file.
  7. make -C packages/romfs_meta/common install
  8. comment out the section 'MOUNT' in file 'packages/initscripts/common/linuxrc'
  9. make -C packages/initscripts/common install
  10. make -C packages/os/linux-2.6 menuconfig:
    1. => second 'General Setup' => 'Kernel command line' -> "root=/dev/mtdblock1 init=/linuxrc"
    2. => 'Hardware setup' -> CONFIG_ETRAX_FLASH_BUSWIDTH = 4 -> SDRAM_GRP0_CONFIG = 0x156c
    3. => 18. bit in CONFIG_ETRAX_MEM_GRP1_CONFIG = 0
    4. => "Drivers for built-in interfaces" -> 'Axis flash-map support' = on, CONFIG_ETRAX_PTABLE_SECTOR = 131072
    5. => 'Memory Technology Devices' => 'RAM/ROM/Flash chip drivers' -> CONFIG_MTD_CFI_ADV_OPTIONS = on, -> CONFIG_MTD_CFI_GEOMETRY = on, -> only CONFIG_MTD_MAP_BANK_WIDTH_4 and CONFIG_MTD_CFI_I2 is on. -> 'Support for Intel/Sharp flash chips' = on,
  11. overwrite the Makefile in the ./packages/os/linux-2.6/Makefile,
  12. overwrite axisflashmap.c in the ./os/linux-2.6/arch/cris/arch/drivers/axisflashmap.c
  13. make -C packages/os/linux-2.6 install
  14. make

Try to boot from RAM and flash after

  1. go to the: hadaq@hadeb05:~/soft/devboard-fs_onlyram
  2. su to have root permition
  3. . init_env
  4. switch the BOOT SELECT1 to Network RT/TX (it's 5),
  5. boot_etraxfs -d eth0 -i ./kimage
  6. cd ~/soft/flash
  7. ftp 192.168.0.90, type the login and password,
  8. ftp> cd tmp
  9. ftp> put rescue.img
  10. ftp> put flash1.img
  11. ftp> put flash2.img
  12. ftp> exit
  13. telnet 192.168.0.90, type the login and password,
  14. cd /tmp
  15. eraseflash -v /dev/cflash0
  16. cat /tmp/rescue.img /tmp/flash1.img /tmp/flash2.img > /dev/cflash0
  17. switch the BOOT SELECT1 to NOR Flash (it's 0),
  18. reset the board
  -- RadekTrebacz - 26 Sep 2005
Deleted:
<
<
future: hubcontrol(from cvs) -> trbcontrol
  • Makefile: packages/os/linux-2.6/Makefile
 
Changed:
<
<
META FILEATTACHMENT attr="" comment="packages/os/linux-2.6/Makefile" date="1156837859" name="Makefile" path="Makefile" size="2520" user="RadekTrebacz" version="1.1"
>
>

META FILEATTACHMENT attr="" comment="2. version, put it to: ./packages/os/linux-2.6/Makefile" date="1158668960" name="Makefile" path="Makefile" size="5040" user="RadekTrebacz" version="1.2"
META FILEATTACHMENT attr="" comment="2. ver: put it to: os/linux-2.6/arch/cris/arch/drivers/axisflashmap.c" date="1158669006" name="axisflashmap.c" path="axisflashmap.c" size="12967" user="RadekTrebacz" version="1.1"
META FILEATTACHMENT attr="" comment="version 2: put in the main directory" date="1158669383" name="kernelconfig-2.6" path="kernelconfig-2.6" size="13319" user="RadekTrebacz" version="1.1"
Revision 43
Changes from r40 to r43
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
Line: 153 to 153
 

  1. Modify CONFIG_ETRAX_FLASH_BUSWIDTH to 4 in kernelconfig
Added:
>
>
TIP If you coundn't compile os directory, unchanged it and try again
  When I tried this, the kernel is not compiling anymore! And I even found in the sourcecode, that it is not implemented, so keep it at 2
  1. Modify CONFIG_ETRAX_SDRAM_GRP0_CONFIG to 0x156c in kernelconfig
Deleted:
<
<
TIP If you coundn't compile os directory, unchanged it and try again
 
  1. In packages/romfs_meta/common/Makefile remove the line than contains mnt.romfs_meta.txt
  2. Modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file and rebuild the package with make -C packages/romfs_meta/common install. (This causes the /etc directory to be part of the cramfs file system instead of being writable).
  3. Modify the file packages/initscripts/common/linuxrc by commenting out the whole section starting with MOUNT= , ending with the first 'fi' after that and rebuild the package with make -C packages/initscripts/common install. (This stops the init script from trying to mount the jffs2 filesystem).
Added:
>
>
  1. Overwrite packages/os/linux-2.6/Makefile with file in the Attachment
  2. Modify os/linux-2.6/arch/cris/drivers/axisflashmap.c in the function init_axis_flash :
    mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page); --> mymtd=NULL
    mymtd = flash_probe(); --> mymtd = NULL; this is not necessary ?
 
  1. Modify the kernel as follows: do make -C packages/os/linux-2.6 menuconfig. In the second General Setup menu, modify the Kernel command line so that the root device is mtdblock0 instead of mtdblock3. (This causes linux to search for the init script in the first mtd device, rather than the fourth, which is consistent with a RAM-only image). I.e. the new kernel command line is 'root=/dev/mtdblock0 init=/linuxrc'. Rebuild the kernel with make -C packages/os/linux-2.6 install.
Changed:
<
<
  1. Recreate all images with 'make images'

The changed Makefile from Mikael Starvik and my changes to the kernel-source (which prevents a crash) are missing.
>
>
  1. Recreate all images with 'make images'
    TIP To enable port A (program FPGA via jam) modify CONFIG_ETRAX_PA_BUTTON_BITMASK for 0x0, CONFIG_ETRAX_PA_CHANGEABLE_DIR for 0x0F and CONFIG_ETRAX_PA_CHANGEABLE_BITS for 0xFF
  -- RadekTrebacz - 26 Sep 2005

future: hubcontrol(from cvs) -> trbcontrol
Added:
>
>
  • Makefile: packages/os/linux-2.6/Makefile
 
Added:
>
>
META FILEATTACHMENT attr="" comment="packages/os/linux-2.6/Makefile" date="1156837859" name="Makefile" path="Makefile" size="2520" user="RadekTrebacz" version="1.1"
Revision 40
Changes from r37 to r40
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-R2_1
Line: 147 to 147
 
    1. To upload the kernel image into ram and execute it from there use: boot_etraxfs -i /path/to/kimage;

It is describes on the web: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs
Changed:
<
<
TIP I have to force 10Mb conection, because my server was too busy > =ethtool -s eth0 autoneg off speed 10 duplex full
>
>
TIP I have to force 10Mb connection, because my server was too busy > =ethtool -s eth0 autoneg off speed 10 duplex full
 
Added:
>
>

Additional tips needed for development board:

 
Added:
>
>
  1. Modify CONFIG_ETRAX_FLASH_BUSWIDTH to 4 in kernelconfig
    When I tried this, the kernel is not compiling anymore! And I even found in the sourcecode, that it is not implemented, so keep it at 2
  2. Modify CONFIG_ETRAX_SDRAM_GRP0_CONFIG to 0x156c in kernelconfig
    TIP If you coundn't compile os directory, unchanged it and try again
  3. In packages/romfs_meta/common/Makefile remove the line than contains mnt.romfs_meta.txt
  4. Modify the file packages/romfs_meta/common/mnt.romfs_meta.txt by removing the whole contents of the file and rebuild the package with make -C packages/romfs_meta/common install. (This causes the /etc directory to be part of the cramfs file system instead of being writable).
  5. Modify the file packages/initscripts/common/linuxrc by commenting out the whole section starting with MOUNT= , ending with the first 'fi' after that and rebuild the package with make -C packages/initscripts/common install. (This stops the init script from trying to mount the jffs2 filesystem).
  6. Modify the kernel as follows: do make -C packages/os/linux-2.6 menuconfig. In the second General Setup menu, modify the Kernel command line so that the root device is mtdblock0 instead of mtdblock3. (This causes linux to search for the init script in the first mtd device, rather than the fourth, which is consistent with a RAM-only image). I.e. the new kernel command line is 'root=/dev/mtdblock0 init=/linuxrc'. Rebuild the kernel with make -C packages/os/linux-2.6 install.
  7. Recreate all images with 'make images'

The changed Makefile from Mikael Starvik and my changes to the kernel-source (which prevents a crash) are missing.
  -- RadekTrebacz - 26 Sep 2005

future: hubcontrol(from cvs) -> trbcontrol
Revision 37
Changes from r34 to r37
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

Changed:
<
<
  • Working directory: radek@depc187:~/devboard-work_2.4
>
>
  • Working directory: radek@depc187:~/devboard-R2_1
 
  • Set environment: . init_env
Added:
>
>
  • Voltage switch in the lab in GSI: http://haepc03.gsi.de, user: admin, pass: oscypeczek smile
 
How to compile the application for the board
  1. You have to create new directory in the ~/devboard-work_2.4/apps/
  2. Type: make cris-axis-linux-gnu in the ~/devboard-work_2.4/ directory
Line: 91 to 92
 
  1. enter to the Hardware configuration
    Remember the sum of all partitions couldn't be more than size of the Flash Memory
    TIP ./reconfigure script uses the DEV_BOARD_PRODUCT to set the type of the AXIS product. I put by hand this variable to this script as devboard_82
Added:
>
>
TIP every changes in ./devboard-work/make menuconfig are stored in axis_config.h and in .config files
 

SCRIPTS:
HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
Line: 145 to 147
 
    1. To upload the kernel image into ram and execute it from there use: boot_etraxfs -i /path/to/kimage;

It is describes on the web: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs
Added:
>
>
TIP I have to force 10Mb conection, because my server was too busy > =ethtool -s eth0 autoneg off speed 10 duplex full

  -- RadekTrebacz - 26 Sep 2005

future: hubcontrol(from cvs) -> trbcontrol
Revision 34
Changes from r31 to r34
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-work_2.4
Line: 106 to 106
  TIP There are exported kernel symbols in the /proc/ksyms file
TIP If in your library, make was created symbols with _, instead of symbols without _, you have to add -mlinux option to your Makefile
Added:
>
>

SDK for Etrax FS:

Compiling cris-dist-1.63-v32 :
  1. Problem with format_reg, format_sup_reg, print_with_operands you have to change the lines in the file binutils/opcodes/cris-dis.c
static char *format_reg
   PARAMS ((struct cris_disasm_data *, int, char *, enum cris_disass_family));
static char *format_sup_reg
   PARAMS ((unsigned int, char *, enum cris_disass_family)); 
static void print_with_operands
  PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *,
           bfd_vma, disassemble_info *, const struct cris_opcode *,
           unsigned int, unsigned char *, enum cris_disass_family));
to
static char *format_reg
   PARAMS ((struct cris_disasm_data *, int, char *, boolean));
static char *format_sup_reg
   PARAMS ((unsigned int, char *, boolean));
static void print_with_operands
  PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *,
           bfd_vma, disassemble_info *, const struct cris_opcode *,
           unsigned int, unsigned char *, boolean));
  1. Add to the $PATH the path to the new cris-v32 crosscompiler.
  2. Install a fresh SDK use the ./install script. When asked which product to configure for press enter to use the default.
  3. Run the make menuconfig > in section Hardware Configuration change the Processor for =ETRAX FS.
  4. Run the configure script to download all packages. If configure says the compiler is too new > edit =./configure-files/source/functions and comment the lines 2339-2342.
  5. Copy a FS enabled kernelconfig-2.6 to the SDK root directory.
  6. make init_env && . init_env
  7. make -C packages/os/linux-2.6 crisv32-axis-linux-gnu
  8. make -C packages/os/linux-2.6 menuconfig. Remember in section Hardware setup the Processor type should be ETRAX-FS-V32.
  9. make
  10. To flash the board use the boot_etraxfs script.
    1. To write the whole flash using the host NIC eth1: boot_etraxfs -F -i /path/to/fimage -d eth1;
    2. To write the whole flash except the rescue partition use: boot_etraxfs -f -i /path/to/fimage;
    3. To upload the kernel image into ram and execute it from there use: boot_etraxfs -i /path/to/kimage;
 
Changed:
<
<
>
>
It is describes on the web: http://developer.axis.com/wiki/doku.php?id=sdk2.01_for_fs
  -- RadekTrebacz - 26 Sep 2005

future: hubcontrol(from cvs) -> trbcontrol
Revision 31
Changes from r28 to r31
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

  • Working directory: radek@depc187:~/devboard-work_2.4
Line: 37 to 37
  cp config .config make menuconfig= =exit with any changes cd ../..
Added:
>
>
cp os/linux/.config ./kernelconfig
  ./configure make
Line: 85 to 86
  TIP If you want to change something in the environment, add e.g. PATH , add the line PATH=/home/hadaq/:$PATH to the packages/shell/ash/profile/common/profile
TIP If you want to add some file to the filesystem on the board, see packages/filesystem/Makefile
TIP If you get segmantation fault, when you start daq_evtbuilder probably, shared memory was not set. Check taht /dev/shm exist and tmpfs is mounted there
Added:
>
>
TIP The size Flash Memory is 4MB. It is divided into Rescue, Flsh1 and Flash2 partitions. You can change the size of these partitions in he followong steps:
  1. type: make menuconfig in the main directory,
  2. enter to the Hardware configuration
    Remember the sum of all partitions couldn't be more than size of the Flash Memory
    TIP ./reconfigure script uses the DEV_BOARD_PRODUCT to set the type of the AXIS product. I put by hand this variable to this script as devboard_82
 

SCRIPTS:
HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
Revision 28
Changes from r25 to r28
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

Changed:
<
<
In this page, I'm using linux directory as linux-2.6.
>
>
  • Working directory: radek@depc187:~/devboard-work_2.4
  • Set environment: . init_env
How to compile the application for the board
  1. You have to create new directory in the ~/devboard-work_2.4/apps/
  2. Type: make cris-axis-linux-gnu in the ~/devboard-work_2.4/ directory
  3. Copy some Makefile for example from ~/devboard-work_2.4/apps/hello/ to your directory and modify it
  4. Write the application
  5. Copy binary file to the /home/hadaq on the board, by typing: scp binary_file hadaq@lxhadesdaq:/var/diskless/etrax/

How to compile the new kernel
  1. Go to the radek@depc187:~/devboard-work_2.4/os/linux directory
  2. Change the kernel make menuconfig
  3. Use the script ~/devboard-work_2.4/os/linux/mrproper.sh COMMENT_WORD . This script creates the copy of your .config file, configures the target and makes images. You have to only flash it to the board.

In this page, I'm using linux directory as linux-2.6.
 
  • to change something one should use:
    • configuration scripts: ./configure [-v]; ./make menuconfig; ./os/linux/make menuconfig; ./make
    • configuration files ./packages; ./configure-files/
    • rememmber that ./Makefile is generated by ./configure script
Changed:
<
<
VERY IMPORTANT:
>
>
VERY IMPORTANT:
  ALERT! In the c./onfigure-files/common/common one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB, you can do this by changing ./configure-files/common/common file.
ALERT! Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line:
DHCP_CLIENT="/sbin/udhcpc -i eth0 -H $(hostname)" and set BOOTPROTO="none"
ALERT! To flash any image, log in as 'radek' on the 'depc187.gsi.de', go to the ./devboard-work_2.4 directory, set the environment, by typing . init_env, and now you can use ./flashitall
Changed:
<
<
HINTS:
>
>
HINTS:
  TIP If something is strange(new settings in kernel doesn't work(especial the waitstate during the ./flashit)), use:
make mrproper !!!. %BR The best way to be ensure that we put good version of kernel FOR NOW :
Line: 70 to 84
  TIP If you want to change ptablespec go to the file configure-files/common/common to the section Images, partition table and fstab. For example, if you want to change permission, change csum to 'no'
TIP If you want to change something in the environment, add e.g. PATH , add the line PATH=/home/hadaq/:$PATH to the packages/shell/ash/profile/common/profile
TIP If you want to add some file to the filesystem on the board, see packages/filesystem/Makefile
Changed:
<
<
SCRIPTS:
>
>
TIP If you get segmantation fault, when you start daq_evtbuilder probably, shared memory was not set. Check taht /dev/shm exist and tmpfs is mounted there

SCRIPTS:
  HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
Changed:
<
<
HISTORY OF KERNEL:
>
>

HISTORY OF KERNEL:
 
  1. change from old 2.4 kernel
  2. disable the SCSI and USB options
Changed:
<
<
WARNINGS
>
>
WARNINGS
 
  1. There is no portmap on the board(therefore we are using nfs with -nolock option)
Added:
>
>
Kernel Module
TIP There are exported kernel symbols in the /proc/ksyms file
TIP If in your library, make was created symbols with _, instead of symbols without _, you have to add -mlinux option to your Makefile

 

Revision 25
Changes from r22 to r25
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
Line: 7 to 7
 
    • configuration files ./packages; ./configure-files/
    • rememmber that ./Makefile is generated by ./configure script
Changed:
<
<
VERY IMPORTENT:
>
>
VERY IMPORTANT:
  ALERT! In the c./onfigure-files/common/common one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB, you can do this by changing ./configure-files/common/common file.
ALERT! Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line:
DHCP_CLIENT="/sbin/udhcpc -i eth0 -H $(hostname)" and set BOOTPROTO="none"
Added:
>
>
ALERT! To flash any image, log in as 'radek' on the 'depc187.gsi.de', go to the ./devboard-work_2.4 directory, set the environment, by typing . init_env, and now you can use ./flashitall
 

HINTS:
TIP If something is strange(new settings in kernel doesn't work(especial the waitstate during the ./flashit)), use:
make mrproper !!!. %BR
Line: 68 to 69
  TIP If you want to change the PATH variable on the board, see ./packages/initscripts/common/linuxrc
TIP If you want to change ptablespec go to the file configure-files/common/common to the section Images, partition table and fstab. For example, if you want to change permission, change csum to 'no'
TIP If you want to change something in the environment, add e.g. PATH , add the line PATH=/home/hadaq/:$PATH to the packages/shell/ash/profile/common/profile
Added:
>
>
TIP If you want to add some file to the filesystem on the board, see packages/filesystem/Makefile
  SCRIPTS:
HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
Line: 76 to 78
 
  1. disable the SCSI and USB options

WARNINGS
Changed:
<
<
  1. There is no portmap on the board(therefore we are using nfs with -noloch option)
>
>
  1. There is no portmap on the board(therefore we are using nfs with -nolock option)
 

Revision 22
Changes from r19 to r22
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
Line: 66 to 66
  TIP If you want to change MAC address, see packages/initscripts/mac/rc and packages/initscripts/mac/conf, see scripts
TIP If you are using 'flashitall', you erase SERNO (serial number) variable,. You can put it by bootblocktool -a SERNO 00408CCD00XX on the board.(put the real numbers for XX
TIP If you want to change the PATH variable on the board, see ./packages/initscripts/common/linuxrc
Changed:
<
<
TIP If you want to use daq_agent, you have to change the last argument of svc_register function to 0, because thee is no portmapper on the board
>
>
TIP If you want to change ptablespec go to the file configure-files/common/common to the section Images, partition table and fstab. For example, if you want to change permission, change csum to 'no'
TIP If you want to change something in the environment, add e.g. PATH , add the line PATH=/home/hadaq/:$PATH to the packages/shell/ash/profile/common/profile
  SCRIPTS:
HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
Revision 19
Changes from r16 to r19
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
Line: 28 to 28
  see ./os/linux/mrproper.sh
TIP If you want to change IP number, you have to 'flashit'
TIP if Verification...Error at 0x8000002 if you put the kernel to the exis_board:
Changed:
<
<
you are usind wrong CONFIG_ETRAX_DEF_R_WAITSTATES. It should be 9aa6
>
>
you are usind wrong CO:wqNFIG_ETRAX_DEF_R_WAITSTATES. It should be 9aa6
  TIP somethimes you have to 'make menuconfig' in os/linux (if you see some errors in os/linux directory)
TIP one dont has to do 'make' in os/linux. Instead this one has to 'make' in ./devboard (but somethimes it helps)
Changed:
<
<
TIP if you want to use shared memory, add the proper line to the ./configure-files/common/common file
>
>
TIP if you want to use shared memory, add the proper line:
partition fstab  type=tmpfs  dev=tmpfs     mpoint=/dev/shm mopts=defaults dump=0 pass=0
to the ./configure-files/common/common file
  and add $(INSTALL) -d $(DEV)/shm to ./packages/devices/standard/Makefile
Added:
>
>
and add the proper line to the ./packages/filesystem/Makefile
  TIP if you want to use device mem,put the line: $(MKNOD) -m 0644 $(DEV)/mem c 1 1 to ./packages/devices/axis-2.4/Makefile
Line: 42 to 47
  TIP to use NFS:
  1. put in the file ./configure-files/common/common to the section Images, partition table and fstab the following line:
Changed:
<
<
partition fstab type=nfs dev=140.181.66.120:/home/radek/axis_nfs mpoint=/mnt/nfs mopts=nolock,noauto dump=0 pass=0
>
>
partition fstab type=nfs dev=140.181.75.158:/var/diskless/etrax mpoint=/home/hadaq mopts=nolock,noauto dump=0 pass=0
 
  1. In the ./configure-files/common/common file add the line sub packages/initscripts/mount_nfs
  2. Copy mountall-R1_0_1 into mount_nfs in the ./packages/initscripts/ directory. Enter to this and change the install: section in the Makefile to this one:
Line: 53 to 58
  and in the rc file the proper line:
         begin "Mounting network filesystem"
Changed:
<
<
mount -v /mnt/nfs
>
>
mount -v /home/hadaq
  TIP If you want change the PATH, or add the MANPATH variable in the init_env script, go to the file and see ./configure-files/source/functions to the section function path.
see manual by typing:
Line: 61 to 66
  TIP If you want to change MAC address, see packages/initscripts/mac/rc and packages/initscripts/mac/conf, see scripts
TIP If you are using 'flashitall', you erase SERNO (serial number) variable,. You can put it by bootblocktool -a SERNO 00408CCD00XX on the board.(put the real numbers for XX
TIP If you want to change the PATH variable on the board, see ./packages/initscripts/common/linuxrc
Added:
>
>
TIP If you want to use daq_agent, you have to change the last argument of svc_register function to 0, because thee is no portmapper on the board
  SCRIPTS:
Changed:
<
<
HELP ./changeSettingsTo.sh HOST Prepare the network settings for the HOST, which will be used in ./make
>
>
HELP ./changeSettingsTo.sh HOST Prepare the particular settings for the HOST, which will be used in ./make
  HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
HISTORY OF KERNEL:
  1. change from old 2.4 kernel
Revision 16
Changes from r13 to r16
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
Line: 55 to 55
  begin "Mounting network filesystem" mount -v /mnt/nfs
Changed:
<
<
  1. If you want change the PATH, or add the MANPATH variable in the init_env script, go to the file and see ./configure-files/source/functions to the section function path.
>
>
TIP If you want change the PATH, or add the MANPATH variable in the init_env script, go to the file and see ./configure-files/source/functions to the section function path.
  see manual by typing:
Changed:
<
<
man -l ./configure-files/source/documentation/man/man3/functions.3
>
>
man -l ./configure-files/source/documentation/man/man3/functions.3
TIP If you want to change MAC address, see packages/initscripts/mac/rc and packages/initscripts/mac/conf, see scripts
TIP If you are using 'flashitall', you erase SERNO (serial number) variable,. You can put it by bootblocktool -a SERNO 00408CCD00XX on the board.(put the real numbers for XX
TIP If you want to change the PATH variable on the board, see ./packages/initscripts/common/linuxrc
  SCRIPTS:
Changed:
<
<
HELP ./changeIP.sh HOST Prepare the network settings for the HOST, which will be used in ./make
>
>
HELP ./changeSettingsTo.sh HOST Prepare the network settings for the HOST, which will be used in ./make
  HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
HISTORY OF KERNEL:
  1. change from old 2.4 kernel
  2. disable the SCSI and USB options
Changed:
<
<
  1. turn on the option Provide NFSv4 client support (EXPERIMENTAL) and Provide NFSv4 server support (EXPERIMENTAL) in the Network File Systems section
>
>

WARNINGS
  1. There is no portmap on the board(therefore we are using nfs with -noloch option)
 

-- RadekTrebacz - 26 Sep 2005
Added:
>
>
future: hubcontrol(from cvs) -> trbcontrol
Revision 13
Changes from r10 to r13
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
Line: 8 to 8
 
    • rememmber that ./Makefile is generated by ./configure script

VERY IMPORTENT:
Changed:
<
<
ALERT! In the Makefile one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB, you can do this by changing ./configure-files/common/common file.
>
>
ALERT! In the c./onfigure-files/common/common one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB, you can do this by changing ./configure-files/common/common file.
  ALERT! Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line:
DHCP_CLIENT="/sbin/udhcpc -i eth0 -H $(hostname)" and set BOOTPROTO="none"
Line: 40 to 40
  TIP if you want to add some directory to the structure, see ./packages/filesystem/Makefile
TIP to change size of partiions, use ./make menuconfig and Hardware Configuration section
TIP to use NFS:
Changed:
<
<
  1. turn on the option Provide NFSv4 client support (EXPERIMENTAL) and Provide NFSv4 server support (EXPERIMENTAL) in the Network File Systems section
  2. end
>
>
  1. put in the file ./configure-files/common/common to the section Images, partition table and fstab the following line:
partition fstab  type=nfs   dev=140.181.66.120:/home/radek/axis_nfs mpoint=/mnt/nfs mopts=nolock,noauto dump=0 pass=0
  1. In the ./configure-files/common/common file add the line sub packages/initscripts/mount_nfs
  2. Copy mountall-R1_0_1 into mount_nfs in the ./packages/initscripts/ directory. Enter to this and change the install: section in the Makefile to this one:
        $(INSTALL) $(OWN) -m 0755 rc $(prefix)/etc/init.d/mount_nfs
        $(LN) -sf ../init.d/mount_nfs "$(prefix)"/etc/rc3.d/S99mount_nfs
and in the rc file the proper line:
         begin "Mounting network filesystem"
         mount -v /mnt/nfs
  1. If you want change the PATH, or add the MANPATH variable in the init_env script, go to the file and see ./configure-files/source/functions to the section function path.

see manual by typing: man -l ./configure-files/source/documentation/man/man3/functions.3
 

SCRIPTS:
HELP ./changeIP.sh HOST Prepare the network settings for the HOST, which will be used in ./make
HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
Changed:
<
<
%GRANAT% HISTORY OF KERNEL:
>
>
HISTORY OF KERNEL:
 
  1. change from old 2.4 kernel
Added:
>
>
  1. disable the SCSI and USB options
 
  1. turn on the option Provide NFSv4 client support (EXPERIMENTAL) and Provide NFSv4 server support (EXPERIMENTAL) in the Network File Systems section
Revision 10
Changes from r7 to r10
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Changed:
<
<

New SDK:

  • to change something one should use only ./configure and make in ./devboard directory
    VERY IMPORTENT:
  • In the Makefile one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB
  • Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line:
>
>

New Software Development Kit (SDK) for TRB:

In this page, I'm using linux directory as linux-2.6.
  • to change something one should use:
    • configuration scripts: ./configure [-v]; ./make menuconfig; ./os/linux/make menuconfig; ./make
    • configuration files ./packages; ./configure-files/
    • rememmber that ./Makefile is generated by ./configure script

VERY IMPORTENT:
ALERT! In the Makefile one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB, you can do this by changing ./configure-files/common/common file.
ALERT! Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line:
  DHCP_CLIENT="/sbin/udhcpc -i eth0 -H $(hostname)" and set BOOTPROTO="none"
Changed:
<
<
HINTS:
  • If you want to change IP number, you have to 'flashit'
  • if Verification...Error at 0x8000002 if you put the kernel to the exis_board: bad CONFIG_ETRAX_DEF_R_WAITSTATES. It should be 9aa6
  • somethimes you have to 'make menuconfig' in os/linux (if you see some errors in os/linux directory)
  • after changing the kernel, first you have to copy os/linux/.config to ./kernelconfig.
  • one dont has to do 'make' in os/linux. Instead this one has to 'make' in ./devboard (but somethimes it helps)
  • if you want to use shared memory, add the line:
>
>

HINTS:
TIP If something is strange(new settings in kernel doesn't work(especial the waitstate during the ./flashit)), use:
make mrproper !!!. %BR The best way to be ensure that we put good version of kernel FOR NOW :
 
  
Changed:
<
<
@printf $(FSTAB_FORMAT) "tmpfs" "/dev/shm" "tmpfs" "defaults" "0 0" >> $@
>
>
./os/linux/make menuconfig cp .config config make mrproper cp config .config make menuconfig= =exit with any changes cd ../.. ./configure make
 
Changed:
<
<
in the ./Makefile and add $(INSTALL) -d $(DEV)/shm to ./packages/devices/axis/Makefile
  • if you want to use device mem,put the line:
>
>
see ./os/linux/mrproper.sh
TIP If you want to change IP number, you have to 'flashit'
TIP if Verification...Error at 0x8000002 if you put the kernel to the exis_board: you are usind wrong CONFIG_ETRAX_DEF_R_WAITSTATES. It should be 9aa6
TIP somethimes you have to 'make menuconfig' in os/linux (if you see some errors in os/linux directory)
TIP one dont has to do 'make' in os/linux. Instead this one has to 'make' in ./devboard (but somethimes it helps)
TIP if you want to use shared memory, add the proper line to the ./configure-files/common/common file
and add $(INSTALL) -d $(DEV)/shm to ./packages/devices/standard/Makefile
TIP if you want to use device mem,put the line:
  $(MKNOD) -m 0644 $(DEV)/mem c 1 1
Changed:
<
<
to ./packages/devices/axis/Makefile
  • to remove some initialize scripts, one has to comment the proper line in the ./Makefile in the section SUBDIRS. This line will be start from packages/initscripts.
>
>
to ./packages/devices/axis-2.4/Makefile
TIP to remove some initialize scripts, one has to comment the proper line in the ./Makefile in the section SUBDIRS. This line will be start from packages/initscripts.
TIP if you want to add some directory to the structure, see ./packages/filesystem/Makefile
TIP to change size of partiions, use ./make menuconfig and Hardware Configuration section
TIP to use NFS:
  1. turn on the option Provide NFSv4 client support (EXPERIMENTAL) and Provide NFSv4 server support (EXPERIMENTAL) in the Network File Systems section
  2. end

SCRIPTS:
HELP ./changeIP.sh HOST Prepare the network settings for the HOST, which will be used in ./make
HELP ./os/linux/mrproper.sh COMMENT_WORD Use this scripts after ./os/linux/make menuconfig to be sure that you are using proper version of kernel
%GRANAT% HISTORY OF KERNEL:
  1. change from old 2.4 kernel
  2. turn on the option Provide NFSv4 client support (EXPERIMENTAL) and Provide NFSv4 server support (EXPERIMENTAL) in the Network File Systems section
 

-- RadekTrebacz - 26 Sep 2005
Revision 7
Changes from r4 to r7
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Changed:
<
<
Changing in directory structure: -> edit packages/filesystem/Makefile

but how can I put this change into board => nobody knows

cd os/linux make dep cd ../.. make kernel make install make files make images ./ktest - doesnt work ./kflash - doesnt work ./my_flashitall - doesnt work

  1. auto making
  2. nfs
  3. new enviroment & kernel
>
>

New SDK:

  • to change something one should use only ./configure and make in ./devboard directory
    VERY IMPORTENT:
  • In the Makefile one has to remove all lines with the 'status_led' or 'set_led', because we dont have any default diods on the portB
  • Turn off DHCP in './packages/initscripts/net.eth0/conf' -> comment the line: DHCP_CLIENT="/sbin/udhcpc -i eth0 -H $(hostname)" and set BOOTPROTO="none"
    HINTS:
  • If you want to change IP number, you have to 'flashit'
  • if Verification...Error at 0x8000002 if you put the kernel to the exis_board: bad CONFIG_ETRAX_DEF_R_WAITSTATES. It should be 9aa6
  • somethimes you have to 'make menuconfig' in os/linux (if you see some errors in os/linux directory)
  • after changing the kernel, first you have to copy os/linux/.config to ./kernelconfig.
  • one dont has to do 'make' in os/linux. Instead this one has to 'make' in ./devboard (but somethimes it helps)
  • if you want to use shared memory, add the line:
  
      @printf $(FSTAB_FORMAT) \
           "tmpfs" "/dev/shm" "tmpfs" "defaults" "0 0" >> $@
in the ./Makefile and add $(INSTALL) -d $(DEV)/shm to ./packages/devices/axis/Makefile
  • if you want to use device mem,put the line: $(MKNOD) -m 0644 $(DEV)/mem c 1 1 to ./packages/devices/axis/Makefile
  • to remove some initialize scripts, one has to comment the proper line in the ./Makefile in the section SUBDIRS. This line will be start from packages/initscripts.
 

-- RadekTrebacz - 26 Sep 2005
Revision 4
Changes from r1 to r4
Line: 1 to 1
 
META TOPICPARENT name="TDCReadoutBoard"
Changing in directory structure:
Changed:
<
<
-> edit packages/filesystem/Makefile
>
>
-> edit packages/filesystem/Makefile

but how can I put this change into board => nobody knows

cd os/linux make dep cd ../.. make kernel make install make files make images ./ktest - doesnt work ./kflash - doesnt work ./my_flashitall - doesnt work

  1. auto making
  2. nfs
  3. new enviroment & kernel
 

-- RadekTrebacz - 26 Sep 2005
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Hades Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)