Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Linux image
2014 年 03 月 14 日
09:11:36
anthony
Admin
Forum Posts: 31
Member Since:
2013 年 07 月 04 日
Offline

Original Posted from lukeross.. thanks for lukeross sharing

I've plonked a small (256MB) Debian SD image at http://lukeross.name/static/sd.....mal.img.gz
if you want to try it, ungzip it and then copy it to an SD card directly (using "dd" or similar). Once synced, pop the SD card into the onboard slot of the Educake and turn it on – it'll come up via DHCP and start dropbear SSH. SSH in as root with password "password". There isn't much free space.

2014 年 03 月 14 日
18:40:07
mrZagg
New Member
Forum Posts: 10
Member Since:
2014 年 03 月 13 日
Offline

does this work with the zero?

2014 年 03 月 15 日
06:18:13
Ekkehard
Sunnyvale, CA - USA
New Member
Forum Posts: 8
Member Since:
2014 年 01 月 24 日
Offline

Yes - it does work with the Zero! I have it running on the Zero und it works great!

After loggin in, you probably want to replace the file /etc/apt/sources.list with the following content:

# deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 NETINST Binary-1 20140208-12:25]/ wheezy main

deb http://host/debian distribution section1 section2 section3
deb-src http://host/debian distribution section1 section2 section3

deb http://http.us.debian.org/debian stable main contrib non-free
deb-src http://http.us.debian.org/debian stable main

i.e. comment out the one line that makes it look for updates on a CD that it doesn't have and add a standard Debian repository. After that, you may want to do a

apt-get install ntp

This will assure that your Zero knows what time it is. This is important when sharing files over the LAN. To get fancy, you can do a

dpkg-reconfigure tzdata

to switch to your time zone.

With that you should be up and running.

Happy Linuxing on the Zero.

2014 年 03 月 15 日
17:16:22
mrZagg
New Member
Forum Posts: 10
Member Since:
2014 年 03 月 13 日
Offline

thanks Ekkehard,
i'll try this.

2014 年 04 月 23 日
03:42:22
drbokko
New Member
Forum Posts: 2
Member Since:
2014 年 04 月 04 日
Offline

Hi everybody,
I've got an educake for fun recently which I would like to use as a general purpose breadbord for debugging and development.
I was wondering if you already have some way to access to the GPIO pins and ADC from linux or (in case of a negative response) if you would need some help in the development of the drivers.

I work with minimal distribution and software/hardware integration so maybe I could be useful. I don't have a lot of spare time but..,,

Best
drbokko

2014 年 04 月 23 日
23:03:28
thamim
New Member
Forum Posts: 1
Member Since:
2014 年 04 月 23 日
Offline

hi Anthony,
i have got 86duino educake board recently, i downloaded the Debian SD image from the website
http://lukeross.name/static/sd.....mal.img.gz , then extracted into SD card using dd utlity,put sdcard on the onboard slot of the Educake ,after turn on board, my com port: "86duino(com 11) "was dsiappeared,i am not boot debain image from sd card but i am able to see the com port without this debain image .

i have wasted one week for boot linux image from 86duino educake board, would you please tell me the steps to boot the debain image in 86duino educake boot and if any other prebuilt image support for educake board,please provide me.

one more help needed, is it possible to boot the linux image from usb not from sd card?
thanks,
thamim razith

2014 年 04 月 24 日
18:32:27
anthony
Admin
Forum Posts: 31
Member Since:
2013 年 07 月 04 日
Offline

Thamim,
when you want to use SD card or USB thumb drive to boot Linux or other OS, please see 86Duino as standard/regular PC/computer (like old school computer), for you question when you put SD card, then see your COM11 is gone, means you already sucess got Linux boot. and 86Duino can support USB boot. the default boot device is SD Card -> USB -> internal SPI flash. hope you understand what I want to explain.

Anthony

2014 年 05 月 01 日
02:47:38
Ekkehard
Sunnyvale, CA - USA
New Member
Forum Posts: 8
Member Since:
2014 年 01 月 24 日
Offline

Hi @drbokko
what you are trying to do is on my list of things to do too ;-) Unfortunately, so far I haven't been able to spend even a minute on it :-( There are a bunch of other things that I need to complete first. So chances are, you will get there first. If I get mine working before you do, I will definitely post my findings here. But it will be probably June before I get to it.

2014 年 05 月 02 日
04:44:36
drbokko
New Member
Forum Posts: 2
Member Since:
2014 年 04 月 04 日
Offline

Hei Ekkehard,
I started accessing the PCI as suggested in the programming manual of the other board, unfortunately the register are not the same.
ftp://ftp.dmp.com.tw/DMP_Vorte.....091216.pdf

I wanted to start to reverse reconstruct the access from the sources of the sw toolchain provided but I also lack time. It would be just easier if they would provide something more but they ignore the requests.

Unfortunately I deciced to abbandon the project and to move to plan B (Intel Galileo)... which is just 10-15 Euro more expensive here in Switzelrand then the 86duino.

O.T. Sorry if I spam the list, but I can't get to write a message to the user directly.
Best

2014 年 05 月 29 日
05:15:45
guidol
Germany
New Member
Forum Posts: 5
Member Since:
2014 年 05 月 23 日
Offline
10

Hi,
I wrote the linux image to a 2GB SD-Card.
Inside the 2nd Partition (256MB) isnt much space, so I did try to expand/resize the 2nd Partition with GPartEd on a second PC (with Ubuntu 14.04 LTS)
But GPartEd did got problems to read the partition table and parted only show a 2GB Partition on /dev/sdb

I can start GPartEd with /dev/sdb1 or /dev/sdb2 and then I did see the 8MB Start-Partition or the 256 /228 MB Linux ext3 Partiton.

Did anyone successful resize the ext3 Partition on a bigger SD-Card?

The small image is starting fine:

root@educake:/proc# more cpuinfo
processor : 0
vendor_id : Vortex86 SoC
cpu family : 6
model : 0
model name : 06/00
stepping : 1
cpu MHz : 299.973
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 3
wp : yes
flags : fpu tsc cx8 sep cmov mmx
bogomips : 599.94
clflush size : 32
cache_alignment : 32
address sizes : 32 bits physical, 32 bits virtual
power management:

root@educake:/proc# uname -a
Linux educake 3.2.55 #3 Tue Feb 18 21:35:03 GMT 2014 i686 GNU/Linux

2014 年 07 月 24 日
10:35:10
Kato Gangstad
New Member
Forum Posts: 7
Member Since:
2014 年 07 月 24 日
Offline
11

How to access GPIO's in userspace.. ?

2014 年 08 月 08 日
10:37:43
bcarroll
Moderator
Forum Posts: 12
Member Since:
2014 年 08 月 04 日
Offline

Ekkehard said
you may want to do a

apt-get install ntp

This will assure that your Zero knows what time it is. This is important when sharing files over the LAN. To get fancy, you can do a

This image works great on the 86duino One (the board is accessible via SSH), but running apt-get update fills up the disk.

For anyone else that makes this mistake (running apt-get update). The files that need deleted are in /var/lib/apt/lists/

2014 年 08 月 08 日
11:27:26
bcarroll
Moderator
Forum Posts: 12
Member Since:
2014 年 08 月 04 日
Offline

guidol said
I wrote the linux image to a 2GB SD-Card.
Inside the 2nd Partition (256MB) isnt much space, so I did try to expand/resize the 2nd Partition with GPartEd on a second PC (with Ubuntu 14.04 LTS)
But GPartEd did got problems to read the partition table and parted only show a 2GB Partition on /dev/sdb

You can easily resize the disk, though it will take some time to complete the process.
Here are the steps to resize the root filesystem:

SSH into the system

login as: root
root@192.168.1.23's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Verify the size of the disk with df -h

root@educake:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 221M 179M 40M 83% /
/dev/root 221M 179M 40M 83% /
tmpfs 13M 164K 13M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 10M 0 10M 0% /dev
tmpfs 25M 0 25M 0% /run/shm

WARNING: This is the scary part. To re-size the partition, you will have to delete it and recreate it with a larger number of blocks.

root@educake:# fdisk /dev/hda

List/print the partitions to be sure you are re-sizing the correct one.

Command (m for help): p

Disk /dev/hda: 15.8 GB, 15829303296 bytes
255 heads, 63 sectors/track, 1924 cylinders, total 30916608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d0954

Device Boot Start End Blocks Id System
/dev/hda1 * 63 16064 8001 1 FAT12
/dev/hda2 16065 481949 232942+ 83 Linux

Delete the partition

Command (m for help): d
Partition number (1-4): 2

Next, recreate the partition. The key here is to use the same start block. If you have been following along, the default start block will be the same as it was previously.

Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended

Create a new primary partition.
Choose partition number 2.
Use the default first and last sector values.

Select (default p): p
Partition number (1-4, default 2):
Using default value 2
First sector (16065-30916607, default 16065):
Using default value 16065
Last sector, +sectors or +size{K,M,G} (16065-30916607, default 30916607):
Using default value 30916607

You can now confirm the new size of the partition.

Command (m for help): p

Disk /dev/hda: 15.8 GB, 15829303296 bytes
255 heads, 63 sectors/track, 1924 cylinders, total 30916608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d0954

Device Boot Start End Blocks Id System
/dev/hda1 * 63 16064 8001 1 FAT12
/dev/hda2 16065 30916607 15450271+ 83 Linux

Write the new partition table to the disk.

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

The partition is now resized, but the filesystem is not. You will need to reboot so the disk can be re-initialized before expanding the filesystem.

root@educake:# reboot

Once the board reboots, SSH back in and run the resize2fs command. This will take a while depending on the size of your disk.

root@educake:~# resize2fs /dev/hda2
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/hda2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 59
Performing an on-line resize of /dev/hda2 to 15450268 (1k) blocks.

You can open another SSH connection and watch the progress by running df -h. My 16GB SD card took a long time to resize (be patient).

To watch the progress in near real-time you can use the watch command

root@educake:# watch df -h
Every 2.0s: df -h Thu Aug 7 23:29:06 2014

Filesystem Size Used Avail Use% Mounted on
rootfs 3.8G 181M 3.6G 5% /
/dev/root 3.8G 181M 3.6G 5% /
tmpfs 13M 164K 13M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 10M 0 10M 0% /dev
tmpfs 25M 0 25M 0% /run/shm

2014 年 08 月 08 日
22:19:24
bcarroll
Moderator
Forum Posts: 12
Member Since:
2014 年 08 月 04 日
Offline

I left the resize running overnight and noticed an error in the morning

resize2fs: Inappropriate ioctl for device While trying to add group #863

Running resize2fs again seems to have picked up where it left off...

root@educake:~# resize2fs /dev/hda2
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/hda2 is mounted on /; on-line resizing required
old_desc_blocks = 27, new_desc_blocks = 59
Performing an on-line resize of /dev/hda2 to 15450268 (1k) blocks.

2014 年 08 月 09 日
00:52:55
bcarroll
Moderator
Forum Posts: 12
Member Since:
2014 年 08 月 04 日
Offline
15

I ended up getting 3 more "Inappropriate ioctl for device While trying to add group" errors, and re-ran resize2fs each time. The filesystem on the SD card is now fully expanded.

root@educake:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 325M 14G 3% /
/dev/root 15G 325M 14G 3% /
tmpfs 13M 168K 13M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 10M 0 10M 0% /dev
tmpfs 25M 0 25M 0% /run/shm

2014 年 09 月 09 日
05:56:20
bbanelli
Zagreb, Croatia
New Member
Forum Posts: 7
Member Since:
2014 年 09 月 02 日
Offline
16

Greetings to all,

by following bcarroll's guide I managed to successfully run Debian on 86Duino Zero and resize my 8GB SD Card.

I am very happy and looking forward to this experience!

With my best,

Bruno

"If you lie to the compiler, it will get its revenge." Henry Spencer http://www.pci-z.com/
2014 年 12 月 05 日
13:30:39
alexx
New Member
Forum Posts: 3
Member Since:
2014 年 12 月 05 日
Offline

Hello!

I successfully run Debian image from first post. But I need to make some changes to the kernel (enable netfilter feature). Where I can find kernel source and config file that used in this Debian image?

EDIT:

Solved. I found compatible kernel config here: http://www.compactpc.com.tw/en.....-list.html

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

lukeross: 8

tomka: 8

smeezekitty: 8

hippy: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1541

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 239

Posts: 1082

Newest Members: nhollywoodmarli, bat869cube672, lenggeleranto, iknowesp, dimka, elihu, Woodrowcercraby, Robertnalty, Homerwoppy, RonaldLew

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 211, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0