Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467412 - Beaglebone install documentation bugs
Summary: Beaglebone install documentation bugs
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Other (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Raúl Porcel (RETIRED)
URL: http://dev.gentoo.org/~armin76/arm/be...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 21:34 UTC by A. Person
Modified: 2013-04-27 18:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2013-04-26 21:34:55 UTC
http://dev.gentoo.org/~armin76/arm/beaglebone/install.xml

ext3 is referenced instead of ext4.

I get the following (harmless?) error from mkcard.sh:

mkcard.sh: line 11: [: /usr/bin/bc: integer expression expected

which must be from this line:

CYLINDERS=`echo $SIZE/255/63/512 | bc`

I may be mistaken but shouldn't the following line:

ln -s /mnt/p2/etc/init.d/sshd /mnt/p2/etc/runlevels/default

be:

ln -s /etc/init.d/sshd /mnt/p2/etc/runlevels/default/sshd

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-27 16:42:46 UTC
(In reply to comment #0)
> ext3 is referenced instead of ext4.

How is that a bug?
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2013-04-27 18:26:51 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > ext3 is referenced instead of ext4.
> 
> How is that a bug?

He means that the script creates an ext4 filesystem while in the guide i say it does an ext3 one.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2013-04-27 18:36:22 UTC
(In reply to comment #0)
> http://dev.gentoo.org/~armin76/arm/beaglebone/install.xml
> 
> ext3 is referenced instead of ext4.
> 

Fixed, the thing is that before the guide used another script which did an ext3 fs instead.

> I get the following (harmless?) error from mkcard.sh:
> 
> mkcard.sh: line 11: [: /usr/bin/bc: integer expression expected
> 
> which must be from this line:
> 
> CYLINDERS=`echo $SIZE/255/63/512 | bc`

line 11 is related to this check:
if [ `which bc` -ne 0 ]; then

Not sure why mkcard.sh does that, because executing that either returns the full path to bc or returns "no cmd found on...", but it never returns a 0, afaik. But i have no idea, the mkcard.sh script is not mine, its the one used in a lot of places.

> 
> I may be mistaken but shouldn't the following line:
> 
> ln -s /mnt/p2/etc/init.d/sshd /mnt/p2/etc/runlevels/default
> 
> be:
> 
> ln -s /etc/init.d/sshd /mnt/p2/etc/runlevels/default/sshd
> 

Yes, fixed.

The guide probably needs an update, I think some stuff is now upstream.

Thanks for the feedback