I am not completely sure, what happened and how to fix it. I noticed that
the updates from actual openwrt thread are somewhat newer, than what was
on the provided board, causing some apps to end with segmentation fault or
bus error - this was due to that those applications were compiled with
newer libc. However this should have no influence on that I am not able to
boot anymore and kernel does not find squashfs:
3 Bifferboard partitions found on MTD device rdc_flash
Creating 3 MTD partitions on "rdc_flash":
0x000000000000-0x000000100000 : "kernel"
0x000000100000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "rdc_flash"
0x0000007f0000-0x000000800000 : "biffboot"
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing unused kernel memory: 116k freed
Please be patient, while OpenWrt loads ...
Kernel panic - not syncing: Attempted to kill init!
As I am not very keen on compilin and flashin my own openwrt (I need to
focus on my application), I tried to go around this by creating a rootfs
on SD card (/dev/sda1). But I am not able to convice the biffboot to take
it as a rootfs. Whenever I change any boot option, the board simply would
not boot and is repeatedly printing on the console just a kernel version:
Linux version 2.6.32.20 (biff@fen) (gcc version 4.1.2) #9 Sun Sep 12
18:46:40 BS
I am only able to continue with boot with default options.
(console=uart,io,0x3f8 rootfstype=squashfs,jffs2)
My questions then:
1. Are there any openwrt snapshots of kernel and rootfs for biffboard that
just works after "bb_upload.py" with USB/SD and that may be used to
quickly fix the board without the need to "install linux, install
buildroot... etc. steps"?
2. Why do any attempts to modify cmndline in biffboot end up with repeated
kernel version message? What this means?
3. How may the rootfs be damaged with installation of two
user applications (perl, mc)? Or could it happen that boot parameters were
set incorrent when I tried to boot with inserted SD card?
Thank for any help.
Adam Pribyl
There's http://sites.google.com/site/bifferboard/Home/factory-firmware
> with USB/SD and that may be used to quickly
> fix the board without the need to "install linux, install buildroot... etc.
> steps"?
...but it doesn't work with a USB rootfs. Maybe you'd have better luck with
http://sites.google.com/site/bifferboard/Home/desktop-linux-distributions/slackware/newbie-instructions
> 2. Why do any attempts to modify cmndline in biffboot end up with repeated
> kernel version message? What this means?
As explained on http://sites.google.com/site/bifferboard/openwrt-svn
the OpenWRT kernel has it's cmndline pararameters embedded inside the
kernel itself. So the only way to change them is to recompile (and
reflash) the kernel.
> 3. How may the rootfs be damaged with installation of two user applications
> (perl, mc)? Or could it happen that boot parameters were set incorrent when
> I tried to boot with inserted SD card?
No idea. Maybe it didn't "shut down" cleanly, and the rootfs image got
corrupted or something?
Andrew
>> My questions then:
>> 1. Are there any openwrt snapshots of kernel and rootfs for biffboard that
>> just works after "bb_upload.py"
>
> There's http://sites.google.com/site/bifferboard/Home/factory-firmware
>
I am bit confused by that. Attachement is named as bzImage, which is
usually a kernel, while having 6MB, it seems to be a complete flash
content (kernel, rootfs, antything else?). On the other page I've read,
that kernel is checked to be less than 974848 bytes by upload python
script. How do I get such an bzImage to the BB?
>> with USB/SD and that may be used to quickly
>> fix the board without the need to "install linux, install buildroot... etc.
>> steps"?
>
> ...but it doesn't work with a USB rootfs. Maybe you'd have better luck with
> http://sites.google.com/site/bifferboard/Home/desktop-linux-distributions/slackware/newbie-instructions
I've got the impression USB works from the page
http://sites.google.com/site/bifferboard/Home/howto/flash-kernel
Seems I am not completely familiar with the terminology used on biffer
board pages and sometimes pages are meant for 1MB older version, which is
kind of missleading.
> Andrew
Adam Pribyl
Yeah, as you may have noticed by now, there's lots of different ways
to do things in Linux ;) I'll try explaining things in depth,
hopefully I won't confuse you even more...!
Every "working linux " needs a kernel and a rootfs. This can either be
a kernel with an external rootfs, or a kernel with an
embedded-inside-it rootfs.
And on the bifferboard, the "external rootfs" can either be on a USB
drive, or it can be in the BB's Flash memory. The current OpenWRT
setup uses an "external rootfs in flash memory", but on the BB to get
the rootfs into flash memory in the first place, it has to be uploaded
at the same time as the kernel. So technically the file is
bzImage-with-appended-rootfs ;)
Created with https://dev.openwrt.org/browser/trunk/target/linux/rdc/image/mkimg_bifferboard.py
> On the other page I've read, that kernel is
> checked to be less than 974848 bytes by upload python script. How do I get
> such an bzImage to the BB?
That limit is for the older 1MB boards, to flash big images onto the
BB you need to use the 'upload8' scripts.
> I've got the impression USB works from the page
> http://sites.google.com/site/bifferboard/Home/howto/flash-kernel
Again, that's for an earlier version of OpenWRT when only the 1MB
bifferboards were available, and so Biff had to hack openwrt to put
the rootfs on USB. With the 8MB-flash BBs, such hacks are no longer
necessary.
> Seems I am not completely familiar with the terminology used on biffer board
> pages and sometimes pages are meant for 1MB older version, which is kind of
> missleading.
Yup, unfortunately parts of the BB wiki are outdated and therefore
confusing :( but as a low-volume product Biff can't afford to hire a
website development team ;)
I've (previously) tidied up parts of the wiki before, and as an
enthusiastic volunteer I'm happy to help with any questions on this
list, if I'm able to.
Andrew