RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Jul 16, 2019 7:14 am

All times are UTC




Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sat Sep 28, 2013 9:03 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Jaromir provided me kindly with his board so I can do some testing.
Code:
2.11 BSD Unix for PIC32, revision 860M build 3:
     Compiled 2012-12-27 by jarin@jarin:
     /home/jarin/retrobsd/sys/pic32/ubw32-uart-sdram
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:3 mult x20
console: tty2 (5,2)
sd0: port SPI4, select pin F3
sdramp_preinit
PP Schema: (sdramp0:sa@2048,fs@14000)
Found partition on sdramp0 of type sa and size 2048
Found partition on sdramp0 of type fs and size 14000
sd0: type I, size 124160 kbytes, speed 2 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0a (0,1)
root size = 32768 kbytes
swap dev  = rd1a (1,1)
swap size = 2048 kbytes
/dev/rd0a: 544 files, 8652 used, 23987 free
Starting daemons: update cron


2.11 BSD UNIX (pic32) (console)

login:

# fdisk -w -n /dev/rd0
/dev/rd0: 124160 blocks of 1KB
Partition number 1
Start: 1
Nr    Start   Length Type
 1        1   124159 B7 *
Calling ioctl to reread the partition table

# fdisk -w -n /dev/rd1
/dev/rd1: 16384 blocks of 1KB
Partition number 1
Start: 1
Nr    Start   Length Type
 1        1    16383 B7 *
Calling ioctl to reread the partition table
#

# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       32639     8653    23986    26%     545    1503    26%   /
# mkfs /dev/rd1b
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
# mount /dev/rd1b /tmp
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       32639     8653    23986    26%     545    1503    26%   /
/dev/rd1b       13945        2    13943     0%       3     861     0%   /tmp
#

# pwd
/tmp
# time dd bs=1k count=8000 if=/dev/zero of=QQQ
8000+0 records in
8000+0 records out
        3.0 real         0.0 user         2.9 sys
# ls -l
total 8001
-rw-r-----  1 root      8192000 Dec 24 02:36 QQQ
drwxr-xr-x  2 root         1024 Dec 24 02:22 lost+found
#

# time dd bs=16k count=500 if=/dev/zero of=QQQ
500+0 records in
500+0 records out
        2.8 real         0.0 user         2.7 sys
#

# pwd
/
# time dd bs=16k count=500 if=/dev/zero of=QQQ
       38.4 real         0.0 user        38.0 sys
#

# time cp -r /bin/* /tmp
       28.8 real         0.0 user        28.7 sys
# pwd
/tmp
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       32639     8653    23986    26%     545    1503    26%   /
/dev/rd1b       13945     5615     8330    40%     170     694    19%   /tmp
#

The writing speed to sdcard ~213kB/sec (dd from /dev/zero), writing speed to sdram ~2.9MB/sec (dd from /dev/zero), copy of entire /bin to /tmp 193kB/sec.
NOTE: sdcard speed 2 Mbit/sec (?)
It seems the swap is located on the sdram..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 9:49 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
# pwd
/share/smallc
# time make
scc  -o hello  hello.c
 scc  -o primelist  primelist.c
scc  -o primesum  primesum.c
scc  -o test1  test1.c
scc  -o test2  test2.c
scc  -o test3  test3.c
scc  -o gpio  gpio.c
scc  -o adc  adc.c
scc  -o rain  rain.c
scc  -o webserver  webserver.c -lwiznet
scc  -o q8  q8.c
       29.7 real         1.2 user        27.2 sys
#


Files placed on /tmp:
Code:
# pwd
/tmp/smallc
# time make
scc  -o hello  hello.c
scc  -o primelist  primelist.c
scc  -o primesum  primesum.c
scc  -o test1  test1.c
scc  -o test2  test2.c
swapmap: overflow, lost 3 clicks at 024
scc  -o test3  test3.c
scc  -o gpio  gpio.c
scc  -o adc  adc.c
scc  -o rain  rain.c
scc  -o webserver  webserver.c -lwiznet
scc  -o q8  q8.c
       27.5 real         1.2 user        25.0 sys
#


NOTE: an interesting error above - never seen it before on my system.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 3:16 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Now, I replaced Jaromir's bootloader and Unix with the new build rev 891 done here (I used this setup):
EDIT: the current and best setup:
Code:
#
# 32MXSDRAM board PCB v1.0 with UART console
# ===========================================
#
# Console on UART3

core pic32mx7
linker bootloader-sdram
mapping generic

device kernel cpu_khz=80000 bus_khz=80000 led=A15
device console led=A14 device=tty2
device uart3 baud=115200
device rdisk led=C13 swap=C14

# number of processes running (max 20)
option nproc=20

# scheduler tick (10-2000) frequency
option hz=1000

# sdcard's definition for the SPI port, sdcard's chipselect and high-side power switch
# because of a mod on the board we use power=B13, otherwise it shall be D12
# max mhz=20, typically 13
device sd0 port=4 cs=F3 power=B13 mhz=13
# device sd1 port=4 cs=F8 power=D13

# other device drivers
device adc
device oc
device gpio

# use SDRAM driver for the external ramdisk
device sdramp

# This defines the swap size and a fs partition size on the external ramdisk.
# When the sa@XXXX is larger than the SWAP_KBYTES, the system will use
# the swap located on the external ramdisk automatically.
# (sd@xxxx + fs@xxxx) <= ramdisk_size
option PARTITION=sdramp0:sa@2048,fs@14000
# IMPORTANT setting when having /u user fs none zero
option nmount=3

# set=pin means the pin will be set high during bootloading.
# On this board C1 shall be grounded to enter the bootloader after reset
# Leds "disk" and "swap" will blink during bootloading process
device bootloader button=C1 user=0x1d005000 led=C13 led2=C14
option crystal=12
option pllidiv=3
option pllmul=20
option upllidiv=3



and the top Makefile.user for 32MXSDRAM board:

Code:
UBW32-UART-SDRAM        = sys/pic32/ubw32-uart-sdram/UBW32-UART-SDRAM

# the new board
32MXSDRAM-UART          = sys/pic32/32mxsdram-uart/32MXSDRAM-UART

# Select target board
TARGET                  = $(32MXSDRAM-UART)

# Filesystem and swap sizes, when SWAP_KBYTES < sdramp0:sa@xxxx, the swap on
# the external ramdisk will be used automatically.
# U is the user space where you may place your files, if any.
# The size of the sdcard.rd image = FS_KBYTES + U_KBYTES + SWAP_KBYTES
FS_KBYTES       = 64000
U_KBYTES        = 20000
SWAP_KBYTES     = 1024

# Set this to the device name for your SD card.  With this
# enabled you can use "make installfs" to copy the filesys.img
# to the SD card.

SDCARD          = /dev/sdb


Bootloader flashed via pickit2 - o.k.

Unix flashed via pic32prog - o.k. (bootloader's disk and swap leds blink)

But - no sign of life after reset.. None of leds blink or lit (except the power led which lits).. Latest update 891.

EDIT: use C1 for bootloader instead of B1

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 4:07 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I've changed the bootloader's detect pin from B1 to C1 and at least it boots now:
Code:
2.11 BSD Unix for PIC32, revision 891M build 1:
     Compiled 2013-09-28 by pito@ubuntu:
     /home/pito/RETROCURRENT/retrobsd/sys/pic32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:3 mult x20
console: tty2 (5,2)
sd0: port SPI4, select pin F3
sdramp_preinit
PP Schema: (sdramp0:sa@2048,fs@14000)
Found partition on sdramp0 of type sa and size 2048
Found partition on sdramp0 of type fs and size 14000
sd0: card_size: SEND_CSD timed out, reply = 255
sd0: cannot get card size
sd0: card_size: SEND_CSD timed out, reply = 255
sd0: cannot get card size
No root filesystem available!
Please enter device to boot from (press ? to list):


Does it mean the sdcard will not start at 20MHz?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 4:20 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
ok, with 13MHz I can see a little bit more:
Code:
2.11 BSD Unix for PIC32, revision 891M build 1:
     Compiled 2013-09-28 by pito@ubuntu:
     /home/pito/RETROCURRENT/retrobsd/sys/pic32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:3 mult x20
console: tty2 (5,2)
sd0: port SPI4, select pin F3
sdramp_preinit
PP Schema: (sdramp0:sa@2048,fs@14000)
Found partition on sdramp0 of type sa and size 2048
Found partition on sdramp0 of type fs and size 14000
sd0: type I, size 124160 kbytes, speed 13 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0a (0,1)
root size = 64000 kbytes
swap dev  = rd1a (1,1)
swap size = 2048 kbytes
temp0: allocated 18 blocks
/dev/rd0a: 586 files, 9180 used, 54569 free
temp0: released allocation
/dev/rd0c: 12 files, 12 used, 19908 free
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
/dev/rd1b on /tmp: mount table full.
Starting daemons: update /var/cron: No such file or directory
/var/cron: created
tabs: No such file or directory
tabs: created
cron


2.11 BSD UNIX (pic32) (console)

login:


But:
Code:
# mkfs /dev/rd1b
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       63749     9185    54564    14%     590    3410    14%   /
/dev/rd0c       19920       12    19908     0%      13    1251     1%   /u
# mount /dev/rd1b /tmp
/dev/rd1b on /tmp: mount table full.
#df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       63749     9185    54564    14%     590    3410    14%   /
/dev/rd0c       19920       12    19908     0%      13    1251     1%   /u
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 4:36 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
The same with my sandisk 4GB:
Code:
2.11 BSD Unix for PIC32, revision 891M build 1:
     Compiled 2013-09-28 by pito@ubuntu:
     /home/pito/RETROCURRENT/retrobsd/sys/pic32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:3 mult x20
console: tty2 (5,2)
sd0: port SPI4, select pin F3
sdramp_preinit
PP Schema: (sdramp0:sa@2048,fs@14000)
Found partition on sdramp0 of type sa and size 2048
Found partition on sdramp0 of type fs and size 14000
sd0: type SDHC, size 3872256 kbytes, speed 13 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0a (0,1)
root size = 64000 kbytes
swap dev  = rd1a (1,1)
swap size = 2048 kbytes
temp0: allocated 18 blocks
/dev/rd0a: 586 files, 9180 used, 54569 free
temp0: released allocation
/dev/rd0c: 12 files, 12 used, 19908 free
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
/dev/rd1b on /tmp: mount table full.


Code:
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       63749     9185    54564    14%     590    3410    14%   /
/dev/rd0c       19920       12    19908     0%      13    1251     1%   /u
# mkfs /dev/rd1b
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       63749     9185    54564    14%     590    3410    14%   /
/dev/rd0c       19920       12    19908     0%      13    1251     1%   /u
# mount /dev/rd1b /tmp
/dev/rd1b on /tmp: mount table full.
#


Code:
# fdisk -w -n /dev/rd0
/dev/rd0: 3872256 blocks of 1KB
Partition number 1
Start: 1
Nr    Start   Length Type
 1        1  3872255 B7 *
Calling ioctl to reread the partition table
# fdisk -w -n /dev/rd1
/dev/rd1: 16384 blocks of 1KB
Partition number 1
Start: 1
Nr    Start   Length Type
 1        1    16383 B7 *
Calling ioctl to reread the partition table
#


3872255 - too big I think..
Any hint??

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 4:46 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
# pwd
/share/smallc
# make
scc  -o hello  hello.c
#extern int printf();
#                 ^
#******  missing semicolon  ******
#extern int printf();
#                 ^
#******  illegal function or declaration  ******
#int main()
#        ^
#******  missing semicolon  ******
#int main()
#        ^
#******  illegal function or declaration  ******


sl works :lol: :lol:

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 6:48 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Quote:
/dev/rd1b on /tmp: mount table full.

You need to increase the size of the mount table. Each mount entry takes quite a lot of RAM, so you should only have the exact same number of entries as you actually need.

You can set the "nmount" option in the kernel configuration
Code:
option nmount=3

(if i remember right)

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:15 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
And is this then ok? :
Code:
sdcard.rd:   filesys.img swap.img user.img
ifneq ($(U_KBYTES), 0)
      tools/mkrd/mkrd -out $@ -boot filesys.img -swap swap.img -fs user.img
else
      tools/mkrd/mkrd -out $@ -boot filesys.img -swap swap.img
endif

regarding -fs user.img

And where is the option located?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:19 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Yes, that is OK. That is saying "if the user filesystem size is not 0 then add it to the image".

The only time you get a problem is if you set the size to 0 but have the /u line in /etc/fstab uncommented.

The option is put somewhere in the kernel configuration file (maybe near the
Code:
option PARTITION=sdramp0:sa@2048,fs@14000

entry).

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:21 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Quote:
# cat fstab
/dev/rd0a / ufs rw,async 1 1
/dev/rd0c /u ufs rw,async 1 2
/dev/rd1b /tmp ufs rw,async 1 0
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:23 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Code:
/dev/rd0c /u ufs rw,async 1 2

That is user.img. Normally it's commented out, and you can uncomment it if you want to:
Code:
/dev/rd0a       /       ufs     rw,async        1       1
#/dev/rd0c      /u      ufs     rw,async        1       2

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:37 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
So, provided I want to have such partitions and swap on sdramdisk:

Code:
# Filesystem and swap sizes.
FS_KBYTES       = 64000
U_KBYTES        = 20000
SWAP_KBYTES     = 1024


I need to setup the kernel config to:

Code:
option PARTITION=sdramp0:sa@2048,fs@14000
option nmount=3


while having the fstab:

Code:
# cat fstab
/dev/rd0a / ufs rw,async 1 1
/dev/rd0c /u ufs rw,async 1 2
/dev/rd1b /tmp ufs rw,async 1 0
#


And I have to reflash unix and dd sdcard.rd to the sdcard..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:41 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Ok, I did above and:
Code:
2.11 BSD Unix for PIC32, revision 891M build 1:
     Compiled 2013-09-28 by pito@ubuntu:
     /home/pito/RETROCURRENT/retrobsd/sys/pic32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:3 mult x20
console: tty2 (5,2)
sd0: port SPI4, select pin F3
sdramp_preinit
PP Schema: (sdramp0:sa@2048,fs@14000)
Found partition on sdramp0 of type sa and size 2048
Found partition on sdramp0 of type fs and size 14000
sd0: type SDHC, size 3872256 kbytes, speed 13 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0a (0,1)
root size = 64000 kbytes
swap dev  = rd1a (1,1)
swap size = 2048 kbytes
temp0: allocated 18 blocks
/dev/rd0a: 589 files, 9184 used, 54565 free
temp0: released allocation
/dev/rd0c: 12 files, 12 used, 19908 free
Getting disk size for /dev/rd1b
Size: 14000 kbytes
Inodes: 864
Starting daemons: update cron


2.11 BSD UNIX (pic32) (console)

login:
..
# df -i
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused  Mounted on
/dev/rd0a       63749     9185    54564    14%     590    3410    14%   /
/dev/rd0c       19920       12    19908     0%      13    1251     1%   /u
/dev/rd1b       13945        2    13943     0%       3     861     0%   /tmp
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:44 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Looking good!

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:48 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Yea, it took us 9 months :)

viewtopic.php?f=7&t=5069

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:52 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
LOL

I am having another look at the fsck-crashing problem. I know it's not allocating enough memory in swap to do the job, but not sure what to do about it.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Sat Sep 28, 2013 7:56 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
# pwd
/tmp
# time dd bs=16k count=500 if=/dev/zero of=QQQ
500+0 records in
500+0 records out
        2.6 real         0.0 user         2.6 sys
# ls -l
total 8001
-rw-r-----  1 root      8192000 Sep 28 11:42 QQQ
drwxr-xr-x  2 root         1024 Sep 28 11:28 lost+found
#

3151 kB/sec write speed on the sdramdisk..

Code:
# pwd
/
# time dd bs=16k count=500 if=/dev/zero of=QQQ
      500+0 records in
500+0 records out
       22.9 real         0.0 user        22.5 sys
#

364 kB/sec write speed on the sdcard (sandisk 4GB, 13MHz SPI)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 29, 2013 8:44 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Done few downloads to /tmp (sdram) with zmodem, with few hundred kB files (it stops download sometimes however):
Code:
# ls -l
total 868
-rw-r--r--  1 root       117023 Mar 25  2013 Maxim_DS89C4XX_Serial_Config.pdf
-rw-r--r--  1 root       162697 Mar 29  2013 a6502-master.zip
drwxr-xr-x  2 root         1024 Sep 29 10:01 lost+found
-rw-r--r--  1 root       188075 Apr 10 14:40 optiboot-v5.0.zip
-rw-r--r--  1 root       418304 Mar 29  2013 stm6502-master.zip
#


But getting sometimes a bus error:
Code:
# ls
*** 0x7f0081c8: bus error
# hash
*** 0x7f0081c8: bus error


The above hash caused reboot, but the /tmp on sdram still contains the data :)
Code:
# ls -l
total 868
-rw-r--r--  1 root       117023 Mar 25  2013 Maxim_DS89C4XX_Serial_Config.pdf
-rw-r--r--  1 root       162697 Mar 29  2013 a6502-master.zip
drwxr-xr-x  2 root         1024 Sep 29 10:01 lost+found
-rw-r--r--  1 root       188075 Apr 10 14:40 optiboot-v5.0.zip
-rw-r--r--  1 root       418304 Mar 29  2013 stm6502-master.zip
# wc *
     550    2997  117023 Maxim_DS89C4XX_Serial_Config.pdf
     600    1834  162697 a6502-master.zip
       0       1    1024 lost+found
     685    2025  188075 optiboot-v5.0.zip
    1650    4566  418304 stm6502-master.zip
    3485   11423  887123 total
#


Maybe we can decrease the sdram's refresh rate ..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 29, 2013 9:57 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Writing speed with Nokia 128MB micro sdcard (13MHz SPI):
Code:
# time dd bs=16k count=500 if=/dev/zero of=QQQ
500+0 records in
500+0 records out
        8.2 real         0.0 user         8.2 sys
#

999 KB/sec writing speed :o :shock: :ugeek:

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page 1, 2, 3  Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission