boot.ini file for Odroid-C1 on FreeBSD wiki page

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

boot.ini file for Odroid-C1 on FreeBSD wiki page

Yoshiro MIHIRA
Hi all.

Currently I setuped DROID-C1 with FreeBSD-12-current with below steps
https://wiki.freebsd.org/FreeBSD/arm/Odroid-C1 <-- (1)

But I got below message in boot sequence, u-boot could not find boot.ini.
I think there is no step to create boot.ini in FreeBSD wiki page(1).
I need to put boot.ini on MS-DOS partition.

I will add boot.ini information to FreeBSD wiki page(1), if no one reply my
email until  10/Aug.

MMC read: dev # 0, block # 33984, count 12288 ... 12288 blocks read: OK
There is no valid bmp file at the given address
============================================================
Vendor: Man 744a60 Snr 4116ca3f Rev: 2.0 Prod: USDU1
Type: Removable Hard Disk
Capacity: 15343.0 MB = 14.9 GB (31422464 x 512)
------------------------------------------------------------
Partition     Start Sector     Num Sectors     Type
    1                 1134          131040       6
    2               132174        31290273      a5
============================================================
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
Hit Enter key to stop autoboot -- :  0
exit abortboot: 0
reading boot.ini

** Unable to read "boot.ini" from mmc 0:1 **
Loading file "/boot/boot.ini" from mmc device 0:1 xxa1
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 0:1 **
Loading file "/boot/boot.ini" from mmc device 0:2 xxa2
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 0:2 **
Failed to load boot.init, maybe empty file?
MMC read: dev # 0, block # 1216, count 16384 ... 16384 blocks read: OK
MMC read: dev # 0, block # 1088, count 128 ... 128 blocks read: OK
Wrong Image Format for bootm command


my boot.ini.
ODROIDC-UBOOT-CONFIG

setenv bootcmd "fatload mmc 0 0x100000 kernel.bin; go 0x100000"
run bootcmd
----

Thanks

Yosihro MIHIRA
Tokyo, Japan
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boot.ini file for Odroid-C1 on FreeBSD wiki page

Boris Samorodov-2
04.08.2017 09:15, Yoshiro MIHIRA пишет:

> I will add boot.ini information to FreeBSD wiki page(1), if no one reply my
> email until  10/Aug.

That will be great.

I have some more questions/fixes to "Steps to prepare SD card".

1. There are two commands:
---
gpart add -t fat16 -b 1134 -s 64M mmcsd0
gpart add -t freebsd -b 132174 mmcsd0
---

I doubt the second command is precise. 64M is 131072 blocks,
131072 + 1134 = 132206.

If I use those commands I get the error after the second one:
---
gpart: autofill: No space left on device
---

The value 132206 has a success. So the second command should be:
---
gpart add -t freebsd -b 132206 mmcsd0
---

2. Since we prepare the final disk, I'd add a growfs command at the
end of those steps:
---
growfs /dev/mmcsd0
---

HTH & WBR
--
bsam
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boot.ini file for Odroid-C1 on FreeBSD wiki page

Yoshiro MIHIRA
Hi.

Currently I could not test something with ODROID-C1(because I use it as my
parent's home VPN router).

1. add boot.ini and fix gpart block size

I updated wiki page
https://wiki.freebsd.org/action/diff/FreeBSD/arm/Odroid-C1?action=diff&rev1=9&rev2=10

2. growfs

I think growfs command is for freebsd partition(mmcsd0s2). So growfs
/dev/mmcsd0s2?

3. serial console is need to boot or not?

Next September I will try to boot ODROID-C1 without serial console cable,
if I have a time.


2017年8月7日(月) 6:19 Boris Samorodov <[hidden email]>:

> 04.08.2017 09:15, Yoshiro MIHIRA пишет:
>
> > I will add boot.ini information to FreeBSD wiki page(1), if no one reply
> my
> > email until  10/Aug.
>
> That will be great.
>
> I have some more questions/fixes to "Steps to prepare SD card".
>
> 1. There are two commands:
> ---
> gpart add -t fat16 -b 1134 -s 64M mmcsd0
> gpart add -t freebsd -b 132174 mmcsd0
> ---
>
> I doubt the second command is precise. 64M is 131072 blocks,
> 131072 + 1134 = 132206.
>
> If I use those commands I get the error after the second one:
> ---
> gpart: autofill: No space left on device
> ---
>
> The value 132206 has a success. So the second command should be:
> ---
> gpart add -t freebsd -b 132206 mmcsd0
> ---
>
> 2. Since we prepare the final disk, I'd add a growfs command at the
> end of those steps:
> ---
> growfs /dev/mmcsd0
> ---
>
> HTH & WBR
> --
> bsam
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boot.ini file for Odroid-C1 on FreeBSD wiki page

Boris Samorodov-2
15.08.2017 12:57, Yoshiro MIHIRA пишет:
> Hi.
>
> Currently I could not test something with ODROID-C1(because I use it as my
> parent's home VPN router).
>
> 1. add boot.ini and fix gpart block size
>
> I updated wiki page
> https://wiki.freebsd.org/action/diff/FreeBSD/arm/Odroid-C1?action=diff&rev1=9&rev2=10

Great, thanks!

> 2. growfs
>
> I think growfs command is for freebsd partition(mmcsd0s2). So growfs
> /dev/mmcsd0s2?

Ah, yes, sure.

> 3. serial console is need to boot or not?

That was just a quesion. I wanted to get a headless machine but
didn't manage to boot Ocdoid-C1 without serial console.

> Next September I will try to boot ODROID-C1 without serial console cable,
> if I have a time.

That would be interesting.

Thank you.

> 2017年8月7日(月) 6:19 Boris Samorodov <[hidden email]>:

>> 04.08.2017 09:15, Yoshiro MIHIRA пишет:
>>
>>> I will add boot.ini information to FreeBSD wiki page(1), if no one reply
>> my
>>> email until  10/Aug.
>>
>> That will be great.
>>
>> I have some more questions/fixes to "Steps to prepare SD card".
>>
>> 1. There are two commands:
>> ---
>> gpart add -t fat16 -b 1134 -s 64M mmcsd0
>> gpart add -t freebsd -b 132174 mmcsd0
>> ---
>>
>> I doubt the second command is precise. 64M is 131072 blocks,
>> 131072 + 1134 = 132206.
>>
>> If I use those commands I get the error after the second one:
>> ---
>> gpart: autofill: No space left on device
>> ---
>>
>> The value 132206 has a success. So the second command should be:
>> ---
>> gpart add -t freebsd -b 132206 mmcsd0
>> ---
>>
>> 2. Since we prepare the final disk, I'd add a growfs command at the
>> end of those steps:
>> ---
>> growfs /dev/mmcsd0
>> ---
>>
>> HTH & WBR
>> --
>> bsam
>> _______________________________________________
>> [hidden email] mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "[hidden email]"
>

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"