[Elphel-support] Reflash questions.

niknah niknah at users.sourceforge.net
Mon Nov 19 04:48:11 PST 2012


Hi all, I have a few 353 reflashing questions.

How long should the reflash take?  It takes 18+ minutes via netboot for me.

What's a good way to make changes to the kernel modules?  Is there a way to
compile the drivers as a loadable module?  Instead of having to compile +
reflash on every change.

My camera is not loading up any more with netboot.  It reboots fine after
reflashing and is able to mount the nfs but it does not mount /mnt/flash
and doesn't complete nfs_update.


Thank you.


Here're the logs...

=======================
./nfs_update rw no_reboot



mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
proc on /proc type proc (rw)
tmpfs on /var type tmpfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
192.168.0.119:/nfs/ on /var/tmp/nfs_mount_point type nfs
(rw,vers=3,rsize=524288,wsize=524288,hard,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.0.119)
DIRNAME == 8.2.8
mount | grep -c DIRNAME == 0
$NFS_MOUNT_POINT=/var/tmp/nfs_mount_point
LOG == /var/tmp/nfs_mount_point/logs/flash.log
LOCK == /var/tmp/nfs_mount_point/logs/lock
ls ==
images    latest80  logs
Warning: Parameter SERNO not found.
nfs_update: /mnt/flash is not mounted, so no configuration files will be
preserved
check MD5SUMs
MD5SUMs correct
copy images to the flash
mkdir: cannot create directory '/mnt/flash/.images': Read-only file system
...copy part0.img
cp: cannot create '/mnt/flash/.images/part0.img': No such file or directory
...copy part1.img
cp: cannot create '/mnt/flash/.images/part1.img': No such file or directory
...copy part2.img
cp: cannot create '/mnt/flash/.images/part2.img': No such file or directory
...copy part3.img
cp: cannot create '/mnt/flash/.images/part3.img': No such file or directory
...sync
copy complete
cd: 173: can't cd to /mnt/flash/.images/
MD5SUMs at flash correct
check NFS filesystem RW/RO mode
NFS filesystem in RW mode
Killing applications...
  PID USER       VSZ STAT COMMAND
    1 root      1136 S    init
    2 root         0 SWN  [ksoftirqd/0]
    3 root         0 SW   [watchdog/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
    6 root         0 SW<  [kthread]
    8 root         0 SW<  [kblockd/0]
   11 root         0 SW<  [khubd]
   23 root         0 SW   [pdflush]
   24 root         0 SW   [pdflush]
   25 root         0 DW<  [kswapd0]
   26 root         0 SW<  [aio/0]
  565 root         0 SW   [mtdblockd]
  620 root      1328 S    /bin/sh /etc/init.d/rc 4
  708 root      1136 S    /bin/utelnetd -d
  712 root      1424 S    /bin/vftpd -r
  718 root      1328 S    /bin/sh /etc/rc4.d/S99flash start
  773 root         0 SW<  [rpciod/0]
  778 root      1328 S    /bin/sh ./nfs_update rw no_reboot
20416 root      1368 S    -sh
20847 root      1328 S    /bin/sh ./nfs_update rw no_reboot
20936 root      1488 R    ps -w
20937 root      1472 S    sleep 1

nothing to kill
  PID USER       VSZ STAT COMMAND
    1 root      1136 S    init
    2 root         0 SWN  [ksoftirqd/0]
    3 root         0 SW   [watchdog/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
    6 root         0 SW<  [kthread]
    8 root         0 SW<  [kblockd/0]
   11 root         0 SW<  [khubd]
   23 root         0 SW   [pdflush]
   24 root         0 SW   [pdflush]
   25 root         0 SW<  [kswapd0]
   26 root         0 SW<  [aio/0]
  565 root         0 SW   [mtdblockd]
  620 root      1328 S    /bin/sh /etc/init.d/rc 4
  708 root      1136 S    /bin/utelnetd -d
  712 root      1424 S    /bin/vftpd -r
  718 root      1328 S    /bin/sh /etc/rc4.d/S99flash start
  773 root         0 SW<  [rpciod/0]
  778 root      1328 S    /bin/sh ./nfs_update rw no_reboot
20416 root      1368 S    -sh
20847 root      1328 R    /bin/sh ./nfs_update rw no_reboot
20937 root      1472 S    sleep 1
20938 root      1488 R    ps -w
Disabling DMA from FPGA...
prepare for reflash
ln: mount: File exists
ln: chmod: File exists
ln: sleep: File exists
ln: sync: File exists
ln: halt: File exists
ln: rm: File exists
ln: cp: File exists
ln: ls: File exists
ls: /mnt/flash/.images/part0.img: No such file or directory
ls: /mnt/flash/.images/part1.img: No such file or directory
ls: /mnt/flash/.images/part2.img: No such file or directory
ls: /mnt/flash/.images/part3.img: No such file or directory
mount: can't find /mnt/flash in /proc/mounts
ls: /mnt/flash/.images/part0.img: No such file or directory
ls: /mnt/flash/.images/part1.img: No such file or directory
ls: /mnt/flash/.images/part2.img: No such file or directory
ls: /mnt/flash/.images/part3.img: No such file or directory
reflash and write log to /var/tmp/nfs_mount_point/logs/flash.log. on NFS
server
You should ignore all messages below like    JFFS2 notice: (864)
jffs2_get_inode_nodes: Node header CRC failed at 0x91794c
  we can't unmount partitions before reflashing, but they are in read-only
mode
  so this notices are confusion of the FS driver about changes in rewritten
FS
  and can't affect the new flashed filesystem.
Warning: Parameter SDK not found.
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 4
Number of bbt blocks: 0
open outfile: Read-only file system
mount: can't find /mnt/.store in /proc/mounts
Erase Total 2 Units
Performing Flash Erase of length 131072 at offset 0x20000 done
copy part3.img to the RAM
ls: /mnt/flash/.images/part3.img: No such file or directory
cp: cannot stat '/mnt/flash/.images/part3.img': No such file or directory
ls: /mnt/flash/.images/part3.img: No such file or directory
ls: /tmp/part3.img: No such file or directory
part2.img
ls: /mnt/flash/.images/part2.img: No such file or directory
Erase Total 192 Units
Performing Flash Erase of length 131072 at offset 0x1fe0000 done
ls: /mnt/flash/.images/part2.img: No such file or directory
open input file: No such file or directory
part1.img
ls: /mnt/flash/.images/part1.img: No such file or directory
Erase Total 62 Units
Performing Flash Erase of length 131072 at offset 0x7e0000 done
ls: /mnt/flash/.images/part1.img: No such file or directory
open input file: No such file or directory
part3.img
ls: /tmp/part3.img: No such file or directory
Erase Total 640 Units
Performing Flash Erase of length 131072 at offset 0x6fe0000 done
open input file: No such file or directory
restore bootblock
open input file: No such file or directory
mount: can't find /mnt/.store in /proc/mounts
rm: cannot remove '/mnt/.store/part0.img': No such file or directory
mount: can't find /mnt/.store in /proc/mounts
====
camera reflashing done
====
don't reboot - wait for reset by power
turn off yellow lamp on the camera
y
write to register MR23 value 0x0014






=======================
dmesg




Linux version 2.6.19 (hankin at elphel-4) (gcc version 3.2.1 Axis release
R64/1.64) #9 Mon Nov 19 04:44:39 EST 2012
ROM fs in RAM, size 15728640 bytes
Setting up paging and the MMU.
On node 0 totalpages: 8192
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 8160 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
command line found: "root=/dev/mtdblock3 init=/linuxrc rootfstype=jffs2
 mac=00:0E:04:08:1B:2C ip=192.168.0.9 cmd=rw"
Linux/CRISv32 port on ETRAX FS (C) 2003, 2004 Axis Communications AB
Built 1 zonelists.  Total pages: 8160
Kernel command line: root=/dev/mtdblock3 init=/linuxrc rootfstype=jffs2
 mac=00:0E:04:08:1B:2C ip=192.168.0.9 cmd=rw
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 2, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 1, 16384 bytes)
Memory: 24936k/65536k available (1749k kernel code, 40600k reserved, 621k
data, 72k init)
Calibrating delay loop... 199.47 BogoMIPS (lpj=997376)
Mount-cache hash table entries: 1024
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -2, 2048 bytes)
TCP established hash table entries: 2048 (order: 0, 8192 bytes)
TCP bind hash table entries: 1024 (order: -1, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
Check hardware configuration of Elphel 353 camera
Elphel 10349/10369 IO extension board is not present
fast_timer_init()
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: CRISv32 driver $Revision: 1.78 $ <6>ttyS0 at I/O 0xb0026000 (irq =
68) is a CRISv32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
ETRAX FS 10/100MBit ethernet v0.01 (c) 2003 Axis Communications AB
eth0: changed MAC to 00:40:8C:CD:00:00
netconsole: not configured, aborting
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide: ETRAX FS built-in ATA DMA controller
ide: Elphel 353 io extension board not found, skipping initialization
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for Belkin /
Peracom / GoHubs USB Serial Adapter
usbcore: registered new interface driver belkin
drivers/usb/serial/belkin_sa.c: USB Belkin Serial converter driver v1.2
drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
usbcore: registered new interface driver cp2101
drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial
adaptor driver v0.07
drivers/usb/serial/usb-serial.c: USB Serial support registered for Garmin
GPS usb/tty
usbcore: registered new interface driver garmin_gps
drivers/usb/serial/garmin_gps.c: garmin gps driver v0.28
drivers/usb/serial/usb-serial.c: USB Serial support registered for MCT U232
usbcore: registered new interface driver mct_u232
drivers/usb/serial/mct_u232.c: Magic Control Technology USB-RS232 converter
driver z2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
ETRAX FS stream co-processor driver v0.01, (c) 2003 Axis Communications AB
stream co-processor: init done.
axisflashmap: ...

Resetting flash...
bif_core_rw_grp3=0x6300483
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB
3,3V 8-bit)
Additional Info: ID byte3=0x0, byte4=0x1d
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
Flash is rated 30 ns, modifying bif_core_rw_grp3: old=0x6300483,
new=0x6300001
NAND 128MiB 3,3V 8-bit: 0x08000000 bytes of NAND flash memory.
axisflashmap: Set to boot from NAND flash, making NAND flash primary device.
axisflashmap: flash read 512 bytes at 0x00040000, data: 00 ff ff ff ff ff
ff ff
axisflashmap: partition table offset 10, data: ff ff ff ff ff ff ff ff
axisflashmap: Adding partition for root file system image in RAM
Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x08000000 : "main"
Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00040000 : "boot firmware"
Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00040000-0x002c0000 : "kernel"
axisflashmap: Adding RAM partition for rootfs image.
Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00540000-0x02000000 : "rwfs"
ETRAX FS GPIO driver v2.5, (c) 2003-2006 Axis Communications AB
Elphel (R) model 353 FPGA (Xilinx (R) XC3S1200E) configuration driver - 132
Elphel (R) model 353 system clocks (PLL frequency synth.) driver - 133
fpga_control- 129
arch/cris/arch-v32/drivers/elphel/framepars.c:390:initGlobalPars
GLOBALPARS(G_DEBUG)=0
arch/cris/arch-v32/drivers/elphel/framepars.c:420:initMultiPars
GLOBALPARS(G_MULTI_NUM)=0
Elphel (R) Model 353 Frame Parameters device driver - 130
Elphel FPGA interrupts initialized
Initializing DMA registers for EXTDMA3 - Elphel (R) Model 353 Camera Driver
- 126
Elphel (R) model 353 i2c character device driver - 134, 2 channels
Raw image access driver- 131
Elphel (R) Model 353 video buffer device driver- 135
Elphel (R) model 353 Exif device driver - 125
Starting Elphel (R) Model 353 Gamma Tables device driver - 137
Elphel (R) Model 353 Gamma Tables device driver - 137
Elphel (R) Model 353 Histograms device driver
imu_logger- 141
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 72k freed
eth0: changed MAC to 00:0E:04:08:1B:2C
eth0: changed MAC to 00:0E:04:08:1B:2C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20121119/5c4cda73/attachment-0002.html>


More information about the Support-list mailing list