While trying to get Bering to boot from a DoC, I ran into a hurdle
that has been discussed before but never resolved in a way that
would prevent new DoC users from struggling with it.

The Bering rc3 modules for MTD DiskOnChip and NFTL do not allow
concurrent mounting of the same device in multiple locations.  That
causes Bering to hang during boot if the DoC boot device (usually
/dev/nftla1) reappears in PKGPATH.  Robert Sprockeels was the last
person to post about this problem[1], and it looks like Simon
Blake[2] and Bao Ha[3] have also written about it.

So far I have seen mention of two possible workarounds:

1) Add "umount $MNT" to line 217 of /linuxrc (Simon's fix)

2) Try newer doc2000 and nftl drivers in hopes that they support
   concurrent mounting.  (Mark Meade suggested[1] that support
   might be in newer versions.)

and used a third of my own (probably poor) design:

3) Add the following else block to the 'if [ -n "$PKGPATH" ]'
   condition in /linuxrc.  Plus signs indicated inserted lines.

   ----
          done
          IFS=$OIFS
   +  else
   +      bootfs=`cat /var/lib/lrpkg/boot.fstype`
   +      rdevlist="/dev/boot:+$MNT:-$bootfs,$rdevlist"
   +      devlist="$devlist,/dev/boot:+$MNT:-$bootfs"
      fi
      
      rdevlist=`echo $rdevlist |sed 's/,$//'`
      devlist=`echo $devlist |sed 's/^,//'`

   ----
   
   and remove the PKGPATH setting in syslinux.cfg on the DoC.


Does anyone have other suggestions or comments about the three
presented?  #2 looks the most promising, but I have not seen
concrete evidence that concurrent mount support is really
included and haven't had time to compile Bering MTD drivers from
CVS yet.

It would be cool if a fix were incorporated into an upcoming
Bering release.  With this and the /dev/nftl* major number issues
fixed, it would be possible to write fairly simple directions for
booting Bering from DoC.  (I have notes that I could convert to
a DocBook draft.)

--Brad

[1] http://www.mail-archive.com/leaf-user@lists.sourceforge.net/msg10188.html
[2] http://sourceforge.net/mailarchive/message.php?msg_id=1655640
[3] http://www.mail-archive.com/leaf-user@lists.sourceforge.net/msg04341.html



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to