Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Flashing after updating code

+2 votes

I modified the Eyetracker Code and the DemoEyeTracker Code to output some data through the serial port. I have compiled my code on Ubuntu 16.04 (I use Parallels virtual machine). I flash the microSD card as explained here. The name of my device is sdb, and the partitions for BOOT and JEVOIS are correctly done. 

But I don't have the LINUX partitions and so I can not test my code. Here is the message displayed after the flashing command :


Old situation:

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdb1         39936    72703    32768   16M  c W95 FAT32 (LBA)
/dev/sdb2         72704  2169855  2097152    1G 83 Linux
/dev/sdb3       2169856 15597567 13427712  6.4G  c W95 FAT32 (LBA)


==================================================
......................

.....................

New situation:

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdb1         39936    72703    32768   16M  c W95 FAT32 (LBA)
/dev/sdb2         72704  2169855  2097152    1G 83 Linux
/dev/sdb3       2169856 15597567 13427712  6.4G  c W95 FAT32 (LBA)

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
#################### Creating filesystems on /dev/sdb ...
mkfs.fat 3.0.28 (2015-05-16)
mke2fs 1.42.13 (17-May-2015)
Invalid filesystem option set: ^64bit,uninit_bg,^metadata_csum
mkfs.fat 3.0.28 (2015-05-16)
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
#################### Populating boot partition /dev/sdb1 from /var/lib/jevois-build/boot/ ...
Drop to login prompt instead of starting JeVois software automatically [y/N] N
Disable serial-over-USB port [y/N] N
#################### Populating root partition /dev/sdb2 from /var/lib/jevois-build/boot/rootfs.ext4 ...
#################### Populating JeVois core in /dev/sdb2 from /var/lib/jevois-build/usr/ ...
#################### Populating jevois partition /dev/sdb2 from /var/lib/jevois-microsd/ ...
#################### Flushing caches and releasing card...
umount: sdcard: not mounted
#################### microSD card is now loaded with JeVois software.
#################### microSD card is ready to be inserted into your JeVois smart camera.
 

Could anyone please explain to me why the LINUX partition is not correclty flashed and how to solve the problem ?

asked Aug 10, 2017 in Misc Questions by jwitt (140 points)

1 Answer

0 votes

I was running into a similar problem, the reason is that your /etc/mk2fs.conf does not have one of the excluded or included filesystem options that mk2fs is being called with in the jevois-flash-card script. You can either

1) Confirm the options that are not there and add them, for example in your case "^64bit,uninit_bg,^metadata_csum", to your /etc/mk2fs.conf

2) Remove the options that are not there by default in your /etc/mk2fs.conf config by changing the jevois-flash-card script.

Profit.

answered Aug 16, 2017 by Bilal (170 points)
Thanks guys, which option does not work on 16.04? We already added a test for Ubuntu 15.10 that does not support some options and we will update jevois-flash-card to work on 16.04 too.
"metadata_csum" , it is not there by default in /etc/mk2fs.conf in Ubuntu 16.04.
thanks, just committed a patch.
...