I need a tutorial for how to boot prepare a sd card boot image

252 views
Skip to first unread message

Mrigendra Chaubey

unread,
Oct 14, 2017, 3:29:12 AM10/14/17
to BeagleBoard
Hi All,

I need a tutorial to boot linux in bbb.
I have booted 3.8 I have rootfs and boot partition
I have booted using a prebuild debian image

I see there is only one rootfs iin debian image
why there is difference between having boot and rootfs vs a single rootfs folder.

I want to use latest kernel. I ran ./build.sh script and it did what it can do. I have  now a zImage unlike a vmlinuz in the debian boot image. Why this difference?
How can I prepare a booting sd card using ./build.sh script and boot on my BBB.

Robert Nelson

unread,
Oct 14, 2017, 9:22:55 AM10/14/17
to Beagle Board


On Oct 14, 2017 2:29 AM, "Mrigendra Chaubey" <mrigendr...@gmail.com> wrote:
Hi All,

I need a tutorial to boot linux in bbb.
I have booted 3.8 I have rootfs and boot partition
I have booted using a prebuild debian image

I see there is only one rootfs iin debian image
why there is difference between having boot and rootfs vs a single rootfs folder.

I want to use latest kernel. I ran ./build.sh script and it did what it can do. I have  now a zImage unlike a vmlinuz in the debian boot image. Why this difference?

It's the exact same file..

How can I prepare a booting sd card using ./build.sh script and boot on my BBB.


Mrigendra Chaubey

unread,
Oct 14, 2017, 11:27:22 AM10/14/17
to BeagleBoard
took u-boot just now from this tutorial,

two problems I see while compiling

Your GCC is older than 6.0 and will not be supported starting in v2018.01.

and 

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch

Why such errors?
Can't we use older u-boot that used to work? 

Robert Nelson

unread,
Oct 14, 2017, 11:34:05 AM10/14/17
to Beagle Board


On Oct 14, 2017 10:27 AM, "Mrigendra Chaubey" <mrigendr...@gmail.com> wrote:
took u-boot just now from this tutorial,

two problems I see while compiling

Your GCC is older than 6.0 and will not be supported starting in v2018.01.

Umm that statement is pretty obvious from u-boot, what's your issue with it?



and 

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch

Didn't pass ARCH=arm



Why such errors?
Can't we use older u-boot that used to work? 

Both those errors show you didn't follow the directions as written.

Regards,

Mrigendra Chaubey

unread,
Oct 14, 2017, 11:44:23 AM10/14/17
to BeagleBoard
yes, i didn't followed instructions, for cross compiler.
I already have a cross compiler that I am using and that builds u-boot.

A couple of more questions,

I took this kernel For am33x-v4.4 (Longterm 4.4.x):  

There is another thing on this site

1. TI BSP

What its for?

2. I took this capemgr: v4.4.x+
When I issued this 
./install.sh

I get an error Error: this script: [./install.sh] is not supported to run under [x86_64]

Robert Nelson

unread,
Oct 14, 2017, 11:49:38 AM10/14/17
to Beagle Board


On Oct 14, 2017 10:44 AM, "Mrigendra Chaubey" <mrigendr...@gmail.com> wrote:
yes, i didn't followed instructions, for cross compiler.
I already have a cross compiler that I am using and that builds u-boot.

A couple of more questions,

I took this kernel For am33x-v4.4 (Longterm 4.4.x):  

There is another thing on this site

1. TI BSP

What its for?

TI has their own supported kernel fork, those are based on that.



2. I took this capemgr: v4.4.x+
When I issued this 
./install.sh

I get an error Error: this script: [./install.sh] is not supported to run under [x86_64]

Correct, that script is not supported to be run on your desktop..

Run it in the end Beagle device.

Regards,

Mrigendra Chaubey

unread,
Oct 14, 2017, 11:59:56 AM10/14/17
to BeagleBoard
I am at menuconfig menu in terminal, I don't know where is bb.org_defconfig. Which configuration I choose for .config file to get booted on my BBB.

Robert Nelson

unread,
Oct 14, 2017, 12:09:31 PM10/14/17
to Beagle Board


On Oct 14, 2017 11:00 AM, "Mrigendra Chaubey" <mrigendr...@gmail.com> wrote:
I am at menuconfig menu in terminal, I don't know where is bb.org_defconfig. Which configuration I choose for .config file to get booted on my BBB.

Umm just hit esc-esc the default config is already loaded by default. Menuconfig pops up just so you can see, tweak, etc..

Regards,

Mrigendra Chaubey

unread,
Oct 14, 2017, 12:14:46 PM10/14/17
to BeagleBoard
Why i asked this because except I am downloading kernel from Robert's repository I don't know where beaglebone configs are 
selected.
I can only see the soc name like am3xx but no where in configs beaglebone or anything that does not confuse a first timer
sure that he is doing the right thing.

Mrigendra Chaubey

unread,
Oct 14, 2017, 12:15:58 PM10/14/17
to BeagleBoard
also why would I use TI's BSP? Is it important for a first timer?

Robert Nelson

unread,
Oct 14, 2017, 12:18:21 PM10/14/17
to Beagle Board
The default config is located at..

patches/defconfig

It gets copied to ./KERNEL/.config

Before
make menuconfig

Gets called..

Regards,

Robert Nelson

unread,
Oct 14, 2017, 12:21:04 PM10/14/17
to Beagle Board


On Oct 14, 2017 11:16 AM, "Mrigendra Chaubey" <mrigendr...@gmail.com> wrote:
also why would I use TI's BSP? Is it important for a first timer?


It's important to TI and some users, it's also what we ship by default for BeagleBoard.org images.

Regards,

William Hermans

unread,
Oct 14, 2017, 12:21:31 PM10/14/17
to beagl...@googlegroups.com
#1 You WERE talking to Robert

#2 There is no question if Robert did "the right thing". The question is if YOU did the right thing.


Mrigendra Chaubey

unread,
Oct 14, 2017, 12:24:09 PM10/14/17
to BeagleBoard
I don't know if I am doing the right thing that's why I am posting questions.
Reply all
Reply to author
Forward
0 new messages