[Elphel-support] Reflash questions.

2012-11-19 Thread niknah
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 ==
imageslatest80  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 Sinit
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 Rps -w
20937 root  1472 Ssleep 1

nothing to kill
  PID USER   VSZ STAT COMMAND
1 root  1136 Sinit
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 Ssleep 1
20938 root  1488 Rps -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 likeJFFS2 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 

Re: [Elphel-support] Reflash questions.

2012-11-19 Thread Oleg
Hi niknah,

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

It takes 2 minutes max. You launch the netboot script, set camera into the
netboot mode then wait until the yellow LED goes off and power cycle.
You could try to download our llie dvd -
kubuntu-elphel-4.isohttp://community.elphel.com/files/live-dvd/ and
reflash from it.

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.

You can compile a module and then upload the results on the camera via ftp.

Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783  x124
Elphel, Inc.
___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com