RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Jan 18, 2018 1:23 pm

All times are UTC




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 3:03 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
Why this LiteBSD bug list is put inside the Unix for simple mcu's?
Also too many bugs in a single thread :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 4:57 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
It's not :P

And there's no such thing as too many bugs in one thread.

_________________
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  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 6:05 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
I've pulled your changes - let me ask you - in SDZL.pic32 -
1. what is the wifi config there (for what module)
2. buttons - for what is the butt1 and butt2?
3. what is the def for baudrate? "UART_BAUD=115200" ? (nope it does not work)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 8:16 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
1. No idea
2. No idea
3. No idea

_________________
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  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 8:32 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Pito wrote:
I've pulled your changes - let me ask you - in SDZL.pic32 -
1. what is the wifi config there (for what module)
The wifi config is commented out.
It's an unfinished driver for Microchip MRF24WG0MA Wi-Fi module, available on chipKIT Wi-Fire board. See the wifi-driver branch.

Pito wrote:
2. buttons - for what is the butt1 and butt2?
Buttons are commented out as well.
On chipKIT Wi-Fire board, button 1, when pressed at kernel startup, forces /sbin/init to bypass the /etc/rc script and directly enter the single user mode (no login: prompt). Button 2 has no assigned action yet.

Pito wrote:
3. what is the def for baudrate? "UART_BAUD=115200" ? (nope it does not work)
Default baud rate is TTYDEF_SPEED=B115200, defined in sys/sys/ttydefaults.h. For console, it's better not to modify it here, but to change the consinit() routine in sys/mips/pic32/cons.c.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sat Oct 17, 2015 9:27 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
In this way?
Code:
    cterm.c_cflag = CS8;
    cterm.c_ospeed = B921600;
    cterm.c_ispeed = B921600;
    uartparam(&ctty, &cterm);

/mips/pic32/cons.c:85:22: error: 'B921600' undeclared

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sun Oct 18, 2015 2:30 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
I added a kernel option UART_BAUD to change the default speed of UART ports. For example:
Code:
options "UART_BAUD=921600"
See commit 3dbde3b.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sun Oct 18, 2015 6:46 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
Thanks!
Splash screen works 921k, but from login up I have to switch to 115k to see something.
Pulled git.
Build - kernel, build, fs,
reflashed - kernel, card img.

In ttydefaults.h
Code:
#define TTYDEF_SPEED    (B115200)

Commented out but still 115k at login.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Sun Oct 18, 2015 7:10 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Need to modify /etc/ttys and /etc/gettytab.
This should solve the task:

Code:
console "/usr/libexec/getty std.921600" xterm   on secure

Code:
9|std.921600|921600-baud:\
        :sp#921600:


Top
 Profile  
 
 Post subject: Re: LiteBSD bug list
PostPosted: Mon Oct 19, 2015 6:04 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
It seems it works. Interestingly in retrobsd there is a "standard" def which works with any baud speed set in kernel..

_________________
Pukao Hats Cleaning Services Ltd.


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

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