uBoot in odroid C2

Post Reply
AceCerbie
Posts: 10
Joined: Wed Nov 09, 2016 12:26 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 3 times
Been thanked: 0
Contact:

uBoot in odroid C2

Unread post by AceCerbie » Wed Jan 04, 2017 2:13 am

Hi,

New Year Greetings Odroid Forum !!!

I am new to odroid, I recently purchased the Odroid C2 and am able to boot it with the minimal os image from sw release link,
I wanted to know whether it is possible to boot the odroid c2 with uboot image alone in SD card, so that I can load the kernel separately via tftp/other means as and when required from linux host.

Compiled the source code and I ran the sd_fusing script as given in the link http://odroid.com/dokuwiki/doku.php?id= ... ing_u-boot upto "Installation to blank card".
When I tried to boot the bootloader , am not seeing the blue LED,

Am I missing anything , Does anything extra has to be done like partitioning the sdcard after sd_fusing script, to get the board up with the compiled uboot?
It would be helpful if anyone can point me to a link or a way as how to do this.

Thanks in Advance for your help. :)
Best Regards,
AFP.

crashoverride
Posts: 4551
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 79 times
Contact:

Re: uBoot in odroid C2

Unread post by crashoverride » Wed Jan 04, 2017 2:33 am

AceCerbie wrote:Does anything extra has to be done like partitioning the sdcard after sd_fusing script, to get the board up with the compiled uboot?
the sd_fusing.sh script is here:
https://github.com/hardkernel/u-boot/bl ... _fusing.sh

It copies the boot loader stages and uboot to the media. It is sector based and does not use any partition information. The only requirement is that when you add partitions, that you exclude the space used by the boot loaders to prevent your from overwriting them:
http://odroid.com/dokuwiki/doku.php?id= ... tion_table

To interact with the uboot loader, you will need a serial console cable. Uboot will prompt you to press the spacebar to interrupt normal boot. This is the "odroidc2#" prompt that is shown in the instructions referenced.
http://www.hardkernel.com/main/products ... 4111883934

Alternatively, you will need a single FAT32 formatted partition with a file named "boot.ini". This is a script file that uboot looks for at startup and executes its contents. It is an automated way to enter "odroidc2#" prompt commands.
These users thanked the author crashoverride for the post:
AceCerbie (Sat May 04, 2019 9:42 pm)

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: uBoot in odroid C2

Unread post by odroid » Wed Jan 04, 2017 11:57 am

You don't need to rebuild the u-boot for the TFTP implementation.
We already tested it. Refer this TFTP guide.
http://odroid.com/dokuwiki/doku.php?id=en:c2
These users thanked the author odroid for the post:
AceCerbie (Sat May 04, 2019 9:42 pm)

AceCerbie
Posts: 10
Joined: Wed Nov 09, 2016 12:26 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: uBoot in odroid C2

Unread post by AceCerbie » Wed Jan 04, 2017 6:57 pm

Hi odroid & crashoverride,
Thank you for your reply,

Am not testing tftp, I am trying to flash only the uboot to SD Card.

I am little bit confused,
crashoverride wrote:Alternatively, you will need a single FAT32 formatted partition with a file named "boot.ini".
crashoverride wrote:The only requirement is that when you add partitions, that you exclude the space used by the boot loaders to prevent your from overwriting them:

I have a 32GB Sandisk ultra microSD,

Do I need a single FAT32 partition in entire 32 GB and run the sd_fusing.h script with uboot.bin and bootloader stages.
OR
Should I partition the Sd card as per the table in http://odroid.com/dokuwiki/doku.php?id= ... tion_table Ubuntu Partition Table
and run the sd_fusing.h script with uboot.bin and bootloader stages.

Thanks In Advance,
Best Regards,
AFP

User avatar
rooted
Posts: 6869
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 265 times
Been thanked: 57 times
Contact:

Re: uBoot in odroid C2

Unread post by rooted » Thu Jan 05, 2017 8:42 am

I would flash and then partition excluding the first part of the card.
These users thanked the author rooted for the post:
AceCerbie (Sat May 04, 2019 9:42 pm)

AceCerbie
Posts: 10
Joined: Wed Nov 09, 2016 12:26 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: uBoot in odroid C2

Unread post by AceCerbie » Fri Jan 06, 2017 3:38 am

Hi rooted,
Thank you for your reply,
I will try that.

Thanks & Regards,
AFP

crashoverride
Posts: 4551
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 79 times
Contact:

Re: uBoot in odroid C2

Unread post by crashoverride » Sun May 05, 2019 1:39 am

Any sectors below 2048 are reserved for system use. Partitions should begin at sector 2048 or greater. The Ubuntu Partition Table is recommended for linux use.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests