From: Nikolay Dimitrov <picmaster@mail.bg>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] board: add support for RIoTboard
Date: Thu, 05 Mar 2015 16:58:47 +0200 [thread overview]
Message-ID: <54F86F27.7070806@mail.bg> (raw)
In-Reply-To: <20150305153739.6ae1bbf0@free-electrons.com>
Hi Thomas,
On 03/05/2015 04:37 PM, Thomas Petazzoni wrote:
> Dear Nikolay Dimitrov,
>
> On Thu, 5 Mar 2015 16:31:47 +0200, Nikolay Dimitrov wrote:
>
>> +Create 2 partitions on the SD-card using your favourite tool. Partition 1
>> +should be around 32MiB, partition 2 should be big enough to hold your rootfs,
>> +for example 128MiB. Here's how an example of such partition layout:
>> +
>> + Device Boot Start End Blocks Id System
>> +/dev/sdX1 2048 67583 32768 83 Linux
>> +/dev/sdX2 67584 329727 131072 83 Linux
>> +
>> +Format these SD-card partitions with your favourite filesystem:
>> +
>> +sudo mkfs.ext2 /dev/sdX1
>> +sudo mkfs.ext2 /dev/sdX2
>> +
>> +Copy the kernel, device tree and extlinux configuration to SD-card partition 1:
>> +
>> +sudo mkdir /mnt/sdcard/
>> +sudo mount /dev/sdX1 /mnt/sdcard/
>> +sudo mkdir -p /mnt/sdcard/boot/extlinux/
>> +sudo cp -v board/embest/riotboard/extlinux.conf /mnt/sdcard/boot/extlinux/
>> +sudo cp -v uImage /mnt/sdcard/boot/
>> +sudo cp -v imx6dl-riotboard.dtb /mnt/sdcard/boot/
>> +sudo umount /dev/sdX1
>> +
>> +Then deploy your rootfs on SD-card partition 2:
>> +
>> +sudo mount /dev/sdX2 /mnt/sdcard/
>> +sudo tar xf rootfs.tar -C /mnt/sdcard/
>> +sudo umount /dev/sdX2
>
> Is there a particular reason to have two ext2 partitions? Why not one
> single partition with the rootfs, also
> containing /boot/extlinux/extlinux.conf, /boot/uImage
> and /boot/imx6dl-riotboard.dtb ?
Not really. Now as you're asking, I found that I'm doing this by habit
(probably inherited by some weird ARM board boot-requirements in the
past).
Would you prefer me to re-send the patch with instructions only for
single partition layout?
Kind regards,
Nikolay
next prev parent reply other threads:[~2015-03-05 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 14:31 [Buildroot] [PATCH v2 1/1] board: add support for RIoTboard Nikolay Dimitrov
2015-03-05 14:37 ` Thomas Petazzoni
2015-03-05 14:58 ` Nikolay Dimitrov [this message]
2015-03-05 15:05 ` Thomas Petazzoni
2015-03-05 16:55 ` Nikolay Dimitrov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F86F27.7070806@mail.bg \
--to=picmaster@mail.bg \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox