You are here

Tried to upgrade Bug Labs Bug Root FS to R1.4 but now my BUG is borked

Submitted by Roland on Sun, 2009-03-15 22:44

On Wednesday, the official release of Bug Labs R1.4 came out. Summary: I tried to upgrade my Bug Root File System, and my Bug no longer works and I am not sure where to document my problem (should I put it on the wiki or the forums?). I guess I will get on good 'ole IRC to get this fixed on Monday (I really dislike IRC, it reminds of the 1990s, full of people trying to help you but no RSS feed, no archives without bots that require Kevin Marks level knowledge to keep them up and running, and no distillation of knowledge so you are doomed to explain the same things over and over again!). Help! If you can help, twitter me @rtanglao or email me roland AT rolandtanglao or I'll try to get help on IRC as well as post on the Bug Labs R1.4 thread on community.buglabs.net. Anybody who helps me, gets a free beer the next time they are in Vancouver (how about a Bug Labs meetup at Open Web 2009 in June 11-12 in Vancouver?) Read on for all details.

Details

R1.4 = Bug Labs SDK 1.81 + Root FS 1.4 + Kernal 1.4 (Suggestion to Bug Labs: bundle these together or tag future releases so that tag 1.5 for example is the same release tag for SDK, FS and Kernal)

The Bug Labs documentation and web presence is confusing even for somebody like me who has been developing software for 20 years and uses confusing open source software like git and Drupal so that's saying something! And Bug Labs seems to admit it in this blog post from December, "Finding BUG Tutorials and Documentation". My off-the-cuff recommendation given my developer relations experience at Nortel  would be to create a single wiki page "Busy Developer's Guide to writing software for the BUG" (BDGB) with the bare minimum of info that is always up to date and to have the dev relations person (Alicia?) post a blog post on bugblogger.com whenever the BDGG is updated! Anyways...

Here's what I did:

Tried to upgrade my Root FS to R1.4 using the Mac instructions from HOW to upgrade ROOT FS aka "Update your BUG memory card" (see "Yak Shaving" section below for full details)

Here's what happened:

The Root FS upgrade appeared to work but when I boot the Bug it doesn't come up and doesn't activate the Ethernet over USB so I can't ssh in to check things out.

Here's what I expected:

I expected it to "just work" and then I could proceed to upgrading the kernal to R 1.4

Guesses as to what went wrong

  1. A bug in the Root FS image?
  2. A bug in the ext2fsx software that I used namely 1.4d4
  3. Something else?

Yak Shaving (or what I did in exquisite detail)

(raw gist is here)

dd if=/dev/disk1s1 of=BUG_backup.ext3.bin 
tar xvfjv bug-image-production-bug-R1.4-rootfs.ext3.bz2
dd if=bug-image-production-bug-R1.4-rootfs.ext3.bz2  of=/dev/disk1s1
95105+1 records in
95105+1 records out
sudo /usr/local/sbin/fsck.ext3  /dev/disk1s1
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
/usr/local/sbin/fsck.ext3: Bad magic number in super-block while trying to open /dev/disk1s1
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
sudo /usr/local/sbin/resize2fs  /dev/disk1s1
resize2fs 1.39 (29-May-2006)
/usr/local/sbin/resize2fs: Bad magic number in super-block while trying to open /dev/disk1s1
Couldn't find valid filesystem superblock.

Comments

Hey Roland, sorry to hear about your difficulties with the latest kernel and FS. Surprisingly, I had no problem getting mine up to 1.4, but I hope we can help you out on IRC or via the forums tomorrow.

As for your other points on documentation and web, we are certainly aware of that and we're planning to streamline everything over the coming weeks. Apologies for any confusion, and as always, we appreciate your continued support of BUG!

Cheers, -mBug Labs

 

bballantine commented at http://community.buglabs.net/bcruskie/posts/96-BUG-Release-1-4-and-SDK-1-2-8-1-are-now-live-#newest_comment: "Reading over your blog post, my best guess is that the root filesystem wasn't properly written to your card.  I see you have written this step on your blog -- dd if=bug-image-production-bug-R1.4-rootfs.ext3.bz2 of=/dev/disk1s1 -- which is wrong.  You need to unzip that filesystem file first, after which it should not have the .bz2 extension."

 

Ooops, my bad! I'll try this without the bz2 and if still doesn't work I'll try to get on IRC before 6p.m eastern, thanks for the reply from bballantine and from mehrshad!

 

i am still a big BUG believer (BBB :-) !) and look forward to having fun with the BUG

 

Very awesome post , i am really impressed with it a lot

<a href="http://www.zecrosoft.com/2014/09/Benefits-of-Ginger.html">فوائد الزنجبيل</a>  <a href="http://www.zecrosoft.com/2014/09/Pomegranate-benefits-for-diet.html">فوائد الرمان</a>  <a href="http://www.zecrosoft.com/2014/09/Benefits-of-the-ring.html">فوائد الحلبة</a>  <a href="http://www.zecrosoft.com/2014/09/Onion-benefits.html">فوائد البصل </a>  <a href="http://www.zecrosoft.com/2014/09/Benefits-thyme.html">فوائد الزعتر</a>  <a href="http://www.zecrosoft.com/2014/09/benefits-sesame-oil.html">فوائد زيت السمسم </a>  <a href="http://www.zecrosoft.com/2014/10/hemorrhoids-treatment.html">علاج البواسير</a> <a href="http://www.zecrosoft.com/2014/10/Benefits-of-anise.html">فوائد اليانسون</a>  <a href="http://www.zecrosoft.com/2014/09/turmeric-benefits-for-hair.html">فوائد الكركم</a> <a href="http://www.zecrosoft.com/2014/10/joha-stories.html">قصص جحا</a>  <a href="http://www.zecrosoft.com/2014/10/hemorrhoids-treatment.html">صور يوم الجمعه</a>  <a href="http://www.zecrosoft.com/2014/10/Signs-of-Pregnancy.html">علامات الحمل</a>  <a href="http://www.zecrosoft.com/2014/10/Definition-of-Love.html">تعريف الحب</a>  <a href="http://www.zecrosoft.com/2014/10/life-of-isthmus.html">حياة البرزخ</a>  <a href="http://www.zecrosoft.com/2014/10/Benefits-of-Raisins.html">فوائد الزبيب</a>

Add new comment