RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Nov 21, 2017 9:26 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Dec 27, 2012 12:13 pm 
User avatar

Joined: Wed Nov 28, 2012 6:17 am
Posts: 58
Since r5xx after, I will not be able to as in the previous version run Retrobsd, because filesys.img and swap.img separately, I never succeeded, Very miss her.

How set config files can run as 5xx previous version for ChipKit MAX32, I would very much like to know, thanks very much!

-----
Attached the following error:
Code:
2.11 BSD Unix for PIC32, revision 860M build 1:
     Compiled 2012-12-27 by root@ubuntu:
     /usr/local/retrobsd_src_860/sys/pic32/max32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: XT crystal, PLL div 1:2 mult x20
console: tty0 (5,0)
sd0: port SPI4, select pin D3
sd1: port SPI4, select pin D4
No root filesystem available!
Please enter device to boot from (press ? to list): rd0

sd0: type SDHC, size 3879936 kbytes, speed 13 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0 (0,0)
root size = 163840 kbytes
Please enter swap device (press ? to list): rd1swap dev  = rd1 (1,0)
sd1: type SDHC, size 3872256 kbytes, speed 13 Mbit/sec
swap size = 3872256 kbytes
sd0: card_read: READ_MULTIPLE timed out, reply = 255
/dev/rd0a: Size check: fsize 0 isize 0

/dev/rd0a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
--- Filesystem check failed... help!
erase, kill ^U, intr ^C
#


---

_________________
A Eco-electronics Enthusiasts.


Top
 Profile  
 
PostPosted: Thu Dec 27, 2012 1: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
You use sdcard.rd not filesys.img

The sdcard.rd file is a combined root/swap/(optional)user file with valid partition table (just like a whole hard drive).

The boot system should automatically identify the root and swap partitions on that image.

_________________
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: Thu Dec 27, 2012 2:47 pm 
User avatar

Joined: Wed Nov 28, 2012 6:17 am
Posts: 58
Success!
But must run the command fsck and reboot .
------------
2.11 BSD Unix for PIC32, revision 860M build 1:
Compiled 2012-12-27 by root@ubuntu:
/usr/local/retrobsd_src_860/sys/pic32/max32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: XT crystal, PLL div 1:2 mult x20
console: tty0 (5,0)
sd0: port SPI4, select pin D3
sd1: port SPI4, select pin D4
sd1: no SD/MMC card detected
sd0: type SDHC, size 3879936 kbytes, speed 13 Mbit/sec
phys mem = 128 kbytes
user mem = 96 kbytes
root dev = rd0a (0,1)
root size = 163840 kbytes
swap dev = rd0b (0,2)
swap size = 2048 kbytes
temp0: allocated 47 blocks
/dev/rd0a: BAD FREEBLK COUNT

/dev/rd0a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
--- Filesystem check failed... help!
erase, kill ^U, intr ^C
#

# fsck <--------------- step 1
** /dev/rd0a
File System: /

temp0: allocated 47 blocks
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Free List
BAD FREEBLK COUNT
BAD FREE LIST
SALVAGE? yes

** Phase 6 - Salvage Free List
569 files, 8638 used, 154561 free
temp0: released allocation

***** FILE SYSTEM WAS MODIFIED *****

***** REBOOT UNIX *****
#

# reboot <--------------- step 2
killing processes... done
syncing disks... done

2.11 BSD Unix for PIC32, revision 860M build 1:
Compiled 2012-12-27 by root@ubuntu:
/usr/local/retrobsd_src_860/sys/pic32/max32
cpu: 795F512L 80 MHz, bus 80 MHz
oscillator: XT crystal, PLL div 1:2 mult x20
console: tty0 (5,0)
sd0: port SPI4, select pin D3
sd1: port SPI4, select pin D4
sd1: no SD/MMC card detected
sd0: type SDHC, size 3879936 kbytes, speed 13 Mbit/sec
phys mem = 128 kbytes
user mem = 96 kbytes
root dev = rd0a (0,1)
root size = 163840 kbytes
swap dev = rd0b (0,2)
swap size = 2048 kbytes
temp0: allocated 47 blocks
/dev/rd0a: 569 files, 8638 used, 154561 free
temp0: released allocation
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: root <--------------- step 3
Password:
Welcome to RetroBSD!
erase, kill ^U, intr ^C
#


------------
Thank you very much!

_________________
A Eco-electronics Enthusiasts.


Top
 Profile  
 
PostPosted: Thu Dec 27, 2012 2:54 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, there is a bug somewhere in fsutil - I am in the process of a complete re-write of the linux-side filesystem interface, but it's taking forever (it's not a simple job).

_________________
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: Thu Dec 27, 2012 2:58 pm 
User avatar

Joined: Wed Nov 28, 2012 6:17 am
Posts: 58
Once again, thank you very much!

_________________
A Eco-electronics Enthusiasts.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

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