Make you own Ubuntu Core Img for your CubieBoard2 (A20)

928 views
Skip to first unread message

Mika Do

unread,
May 3, 2015, 1:32:44 PM5/3/15
to cubie...@googlegroups.com
On Ubuntu:

sudo dpkg -i uboot*.deb
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential u-boot-tools
sudo apt-get install gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev
sudo apt-get install libncurses5-dev 


Getting Source Code

mkdir maker-env/
cd maker-env
cd linux-sunxi
git checkout -b cb2-sunxi-3.4 origin/cb2/sunxi-3.4
cd -
cd binaries
gunzip *.gz
cd -


Compiling

source tools/scripts/envsetup.sh
select ct-ubuntu
cb_build_card_image
cb_part_install_tfcard nand sdX pack
cb_install_tfcard nand sdX

sijok kkk

unread,
Jul 21, 2015, 3:15:12 AM7/21/15
to cubie...@googlegroups.com
Hi Mika Do,
thanks your wonderful post ,i have build it from you script and its working on a sdcard (i have A20 dev board).
i have two questions 1.)how do i enable ethernet ?, that is  emac module ,is it available over the current kernel or should i build it,
2.)the same  image will work over nand flash
regards
Sijo k 

Sanyigz

unread,
Jul 23, 2015, 4:01:19 AM7/23/15
to Cubieboard, royal...@gmail.com
Is this for NAND or for SD card?

Mika Do

unread,
Jul 23, 2015, 4:02:28 AM7/23/15
to Sanyigz, Cubieboard

For nand

Sanyigz

unread,
Jul 23, 2015, 4:25:00 AM7/23/15
to Cubieboard, royal...@gmail.com
But how can i upload it to NAND? Is the nand appear as a drive if i connect the cb2 the pc with the otg port?

Mika Do

unread,
Jul 23, 2015, 4:31:29 AM7/23/15
to Sanyigz, Cubieboard

Once You get  the .img file used  the tool to install  it on the nand 

Sanyigz

unread,
Jul 23, 2015, 9:37:08 AM7/23/15
to Cubieboard, royal...@gmail.com
Can you upload the images to somewhere? As the last five instructions, are unclear, causing a lot of errors, and did not create an img file, but something on the SD card that looks like a cubie2 image.

Melahat Tunalı Karakaş

unread,
Aug 3, 2015, 4:51:09 AM8/3/15
to Cubieboard, royal...@gmail.com

Is an .img file is created as a result of the operations given in the previous e-mail?

23 Temmuz 2015 Perşembe 16:37:08 UTC+3 tarihinde Sanyigz yazdı:

Sanyigz

unread,
Aug 3, 2015, 5:51:59 AM8/3/15
to Cubieboard, royal...@gmail.com
Nope, that's the problem, there were a lot of errors.

Melahat Tunalı Karakaş

unread,
Aug 3, 2015, 6:02:03 AM8/3/15
to cubie...@googlegroups.com, royal...@gmail.com
Must the image be created if the errors are overcame? Or just SD card mirror is created without img file?

I could run without any errors, but img file is not created. In SD card there is 2 partitions as it must be with neede files. And in the output directory there is the same structure as SD card, without any img file.

--
You received this message because you are subscribed to a topic in the Google Groups "Cubieboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cubieboard/BdcVNretwXg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cubieboard+...@googlegroups.com.
Visit this group at http://groups.google.com/group/cubieboard.
For more options, visit https://groups.google.com/d/optout.

Mika Do

unread,
Aug 3, 2015, 12:24:45 PM8/3/15
to Cubieboard
a other way is :
after you build your env abd you get the img file (http://cdimage.ubuntu.com/ubuntu-core/releases/)
is to extract the img file 
run the script $source tools/scripts/envsetup.sh and chose option 1: build CB2
run $cb_build_nand_image, and it will create the .img file 

Melahat Tunalı Karakaş

unread,
Aug 4, 2015, 1:09:54 AM8/4/15
to cubie...@googlegroups.com
Thank you for your help, i am going to try the suggestions.

--

Melahat Tunalı Karakaş

unread,
Aug 4, 2015, 2:19:17 AM8/4/15
to cubie...@googlegroups.com
after doing the instructions step by step, cb_build_nand_image command still does not exist :((

Melahat Tunalı Karakaş

unread,
Aug 4, 2015, 4:31:49 AM8/4/15
to cubie...@googlegroups.com
hi, i found it in https://github.com/meal/linux-sdk-products.git  and could produce the image file finally, thank you  for your help indeed.

Mika Do

unread,
Aug 4, 2015, 9:26:01 PM8/4/15
to Cubieboard
Great! Share your img to evry one! it's not really easy ton find img for this card!

Mika Do

unread,
Aug 5, 2015, 5:39:58 PM8/5/15
to Cubieboard, royal...@gmail.com
Ask to Melahat Tunalı Karakaş it's work for him!
Reply all
Reply to author
Forward
0 new messages