What all needs to be flashed on SD Card after rebuilding the kernel ,Following link : Linux on ARM

72 views
Skip to first unread message

Jane

unread,
Aug 9, 2016, 6:08:50 AM8/9/16
to BeagleBoard

HI,

I am following this link : https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-capemgr:v4.1.x+

and I am able to boot the linux as of now.I have done some changes to the kernel and rebuilt it using rebuild.sh script.What all things I have to do while preparing the sd card?

- Copy all the modules,kernel image and dtbs?Thats it? or do i have to repeat the process - formatting , followed by uboot and then kernel image?
From what instructions on ward I have to repeat the steps?

Thanks and Regards,
Jane

William Hermans

unread,
Aug 9, 2016, 8:51:09 AM8/9/16
to beagl...@googlegroups.com
Why don't you experiment and find out ?


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/17530349-849e-4837-8b62-3c7533c281c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jane

unread,
Aug 9, 2016, 9:53:18 AM8/9/16
to BeagleBoard
I did copy the modules and the device trees along with the uimage.
System doesnt boots ups !
No logs on Minicom as well.!


On Tuesday, August 9, 2016 at 6:21:09 PM UTC+5:30, William Hermans wrote:
Why don't you experiment and find out ?

On Tue, Aug 9, 2016 at 3:08 AM, Jane <imsaura...@gmail.com> wrote:

HI,

I am following this link : https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-capemgr:v4.1.x+

and I am able to boot the linux as of now.I have done some changes to the kernel and rebuilt it using rebuild.sh script.What all things I have to do while preparing the sd card?

- Copy all the modules,kernel image and dtbs?Thats it? or do i have to repeat the process - formatting , followed by uboot and then kernel image?
From what instructions on ward I have to repeat the steps?

Thanks and Regards,
Jane

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Aug 9, 2016, 9:59:55 AM8/9/16
to Beagle Board, imsaura...@gmail.com
On Tue, Aug 9, 2016 at 8:53 AM, Jane <imsaura...@gmail.com> wrote:
> I did copy the modules and the device trees along with the uimage.
> System doesnt boots ups !
> No logs on Minicom as well.!

No serial logs on Minicom?

50/50, it's a minicom configuration issue, try again with gtkterm..

If it doesn't work with gtkterm, then it's likely you didn't install
the bootloader properly (try again). (or you are using
VirtualBox/VMware/etc, which the directions say doesn't work and is
un-supported)

Regards,

--
Robert Nelson
https://rcn-ee.com/

Raulp

unread,
Aug 10, 2016, 12:31:27 AM8/10/16
to BeagleBoard, imsaura...@gmail.com
I did get the minicom logs but it shows only uboot# prompt.

What I did was this : 
1-->modified one dtb and ran rebuild.sh

2-->Copy Kernel Image
Kernel Image:
~/
sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage /media/rootfs/boot/vmlinuz-${kernel_version}
3--->Copy Kernel Device Tree Binaries
~/
sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C /media/rootfs/boot/dtbs/${kernel_version}/
-4-->Copy Kernel Modules
~/
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C /media/rootfs/

Did I miss something?
Last resort would be to format and prepare the card again .!!

William Hermans

unread,
Aug 10, 2016, 2:56:22 AM8/10/16
to beagl...@googlegroups.com
does /media/rootfs/boot/uEnv.txt contain:

uname_r=${kernel_version}

?

For that matter you never mention if you have a first stage uEnv.xt file ( /uEnv.txt ). Granted this assumes redoing form a blank rootfs. But if this is not a blank rootfs then your step #3 should not be necessry.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/54606420-e696-45eb-975a-c870a54a7b39%40googlegroups.com.

William Hermans

unread,
Aug 10, 2016, 2:58:03 AM8/10/16
to beagl...@googlegroups.com
Since you only got a uboot prompt I'll assume you missed one, or both uEnv.txt files.

Raulp

unread,
Aug 10, 2016, 4:01:44 AM8/10/16
to BeagleBoard
Thanks William , Robert !
I pressed removed the power supply , reconnected it , pressed the S3 switch and it booted with the changed kernel image.
Dont know why? 
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Raulp

unread,
Aug 10, 2016, 4:50:14 AM8/10/16
to BeagleBoard
Sorry WHen I pressed S1 , boot happens fine.!

Robert Nelson

unread,
Aug 10, 2016, 9:08:44 AM8/10/16
to Beagle Board
On Wed, Aug 10, 2016 at 3:50 AM, Raulp <raulpb...@gmail.com> wrote:
> Sorry WHen I pressed S1 , boot happens fine.!

then you skipped this section:

https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-DealingwitholdBootloaderineMMC

Jane

unread,
Aug 11, 2016, 2:21:16 AM8/11/16
to BeagleBoard
Hi Robert,
Thanks for the tip, I will try this out !
I wanted to ask , Why do I see rootfs_ along with the rootfs when ever I try to prepare the SD card second time?Which one to be considered?What wrong I am doing?
Regds
J
Reply all
Reply to author
Forward
0 new messages