Post by miner2049er on Feb 28, 2006 15:30:43 GMT -5
........... well n ot quite but it works.
If you run your homebrew apps from a Supercard SD user then this is the tutorial for you. Generally other flash cards are easier.
First grab the latest build from kineox.free.fr/DS/dslinux.ds.gba
Rename it to dslinux.nds and put it on your SD card along with a 64kb .sav file called dslinux.sav
Boot dslinux and login with the credentials
USERNAME root
PASSWORD uClinux
First off we need to format the sram with the command
eraseall /dev/mtd1
Now we need to create a file system on the sram with the command
mount -t jffs2 /dev/rom1 /sram
If you get any error messages you will need to switch off and do it again until it works.
We now need to save the sram to our SD card using the QPC method so enter the command
poweroff
As soon as the DS goes off switch it back on again. I'm not sure how quick you have to be but the quicker the better.
On your Supercard menu go to the SAVE option and find the dslinux.sav file the Press A.
You will be asked "Do you save to SD" Press A to choose yes.
Now boot dslinux.nds again and login with the same credentials again
USERNAME root
PASSWORD uClinux
We now need to create a network configuration file in sram to prevent uas having to enter the details every time we boot dslinux.
We do this using vi which is a really clumsy text editor but it will serve our purposes here.
To open vi use the command
vi
To enter insert mode where we can type press
i
Now enter the following lines of text substituting the Xs for values relating to your own network infrastructure.
iwconfig nds channel XX essid XXXXXXX key XXXXXXXX
ifconfig nds up
ifconfig nds down
ifconfig nds XXX.XXX.XXX.XXX up
route add default gw XXX.XXX.XXX.XXX
echo "nameserver XXX.XXX.XXX.XXX" > /etc/resolv.conf
ping google.com
essid = your wireless SSID
key = your WEP key
the first ip address is the one you want your DS to have
default gw is your default gateway or router ip address
You can use dhcp with the dhcpc command but I have had more reliable results applying a static address.
nameserver is your DNS server
**NOTE** the echo line which writes our DNS settings to a read only file each time (clever).
Now we need to save this as a text file so exit insert mode using the ESCAPE key.
Now save the file with the write command substituting the Xs for the filename you want such as wifi
:w /sram/XXXX.sh
Now quit vi using the quit command
:q
Now we need to save the sram again so that next time, and every subsequent time, we boot, the file will be in sram
If you use the Ds on more than one network network you can create anopther file for each network substituting the relevant values and naming them accordingly such as homewifi.sh and workwifi.sh
Use the QPC method to save sram with the command
poweroff
As soon as the DS goes off switch it back on again and on your Supercard menu go to the SAVE option and find the dslinux.sav file the Press A.
You will be asked "Do you save to SD" Press A to choose yes.
Now boot dslinux.nds again and check that the files are present in sram with the command
ls /sram
you should now see the file XXXX.sh and any others you created.
To run the file and apply the settings use the command
sh /sram/XXXX.sh
After a brief pause you will see the line
"Google.com is alive"
You are now set to hit the net.
Launch the text only browser with the command
/bin/retawq
The browser will launch and show you the homepage.
The commmands for retawq can be awkward but to browse to a site press g and the URL line appears at the bottom.
Enter the URL and hit RETURN.
There's your first site.
Some basic controls are on the D Pad
LEFT = back
RIGHT = Forward
UP = Scroll up
DOWN = scroll down
A = select a link
ESC - can be used to cancel several operations
n - create a new browser window
N - open the current browser document in a new browser window
C - close the current window
1 - un-split the screen
2 - split the screen
TAB - switch between visible windows when the screen is split
w/W - go to the next/previous virtual window in the list
ctrl-w - show a list of all currently existing windows in a menu
Space - scroll down one screenfull of lines in the current document
Page-up - scroll up one screenfull of lines in the current document
Return/Enter/o - open the current link in the current browser window
O - open the current link in a new window
ctrl-o - like O but the screen is split
r - reload the current browser window document
R - like r but additionally tries to bypass external caches
g - go to a new URL
G - like g but the new URL is preset to the URL of the current document
. - stop any ongoing network/disk activity for the current document
\ - show the HTML source code of the current browser window web page
i - show information about the current link
h - go to the "homepage"
u - show the URL history
Q - quit retawq[/url]
If you run your homebrew apps from a Supercard SD user then this is the tutorial for you. Generally other flash cards are easier.
First grab the latest build from kineox.free.fr/DS/dslinux.ds.gba
Rename it to dslinux.nds and put it on your SD card along with a 64kb .sav file called dslinux.sav
Boot dslinux and login with the credentials
USERNAME root
PASSWORD uClinux
First off we need to format the sram with the command
eraseall /dev/mtd1
Now we need to create a file system on the sram with the command
mount -t jffs2 /dev/rom1 /sram
If you get any error messages you will need to switch off and do it again until it works.
We now need to save the sram to our SD card using the QPC method so enter the command
poweroff
As soon as the DS goes off switch it back on again. I'm not sure how quick you have to be but the quicker the better.
On your Supercard menu go to the SAVE option and find the dslinux.sav file the Press A.
You will be asked "Do you save to SD" Press A to choose yes.
Now boot dslinux.nds again and login with the same credentials again
USERNAME root
PASSWORD uClinux
We now need to create a network configuration file in sram to prevent uas having to enter the details every time we boot dslinux.
We do this using vi which is a really clumsy text editor but it will serve our purposes here.
To open vi use the command
vi
To enter insert mode where we can type press
i
Now enter the following lines of text substituting the Xs for values relating to your own network infrastructure.
iwconfig nds channel XX essid XXXXXXX key XXXXXXXX
ifconfig nds up
ifconfig nds down
ifconfig nds XXX.XXX.XXX.XXX up
route add default gw XXX.XXX.XXX.XXX
echo "nameserver XXX.XXX.XXX.XXX" > /etc/resolv.conf
ping google.com
essid = your wireless SSID
key = your WEP key
the first ip address is the one you want your DS to have
default gw is your default gateway or router ip address
You can use dhcp with the dhcpc command but I have had more reliable results applying a static address.
nameserver is your DNS server
**NOTE** the echo line which writes our DNS settings to a read only file each time (clever).
Now we need to save this as a text file so exit insert mode using the ESCAPE key.
Now save the file with the write command substituting the Xs for the filename you want such as wifi
:w /sram/XXXX.sh
Now quit vi using the quit command
:q
Now we need to save the sram again so that next time, and every subsequent time, we boot, the file will be in sram
If you use the Ds on more than one network network you can create anopther file for each network substituting the relevant values and naming them accordingly such as homewifi.sh and workwifi.sh
Use the QPC method to save sram with the command
poweroff
As soon as the DS goes off switch it back on again and on your Supercard menu go to the SAVE option and find the dslinux.sav file the Press A.
You will be asked "Do you save to SD" Press A to choose yes.
Now boot dslinux.nds again and check that the files are present in sram with the command
ls /sram
you should now see the file XXXX.sh and any others you created.
To run the file and apply the settings use the command
sh /sram/XXXX.sh
After a brief pause you will see the line
"Google.com is alive"
You are now set to hit the net.
Launch the text only browser with the command
/bin/retawq
The browser will launch and show you the homepage.
The commmands for retawq can be awkward but to browse to a site press g and the URL line appears at the bottom.
Enter the URL and hit RETURN.
There's your first site.
Some basic controls are on the D Pad
LEFT = back
RIGHT = Forward
UP = Scroll up
DOWN = scroll down
A = select a link
ESC - can be used to cancel several operations
n - create a new browser window
N - open the current browser document in a new browser window
C - close the current window
1 - un-split the screen
2 - split the screen
TAB - switch between visible windows when the screen is split
w/W - go to the next/previous virtual window in the list
ctrl-w - show a list of all currently existing windows in a menu
Space - scroll down one screenfull of lines in the current document
Page-up - scroll up one screenfull of lines in the current document
Return/Enter/o - open the current link in the current browser window
O - open the current link in a new window
ctrl-o - like O but the screen is split
r - reload the current browser window document
R - like r but additionally tries to bypass external caches
g - go to a new URL
G - like g but the new URL is preset to the URL of the current document
. - stop any ongoing network/disk activity for the current document
\ - show the HTML source code of the current browser window web page
i - show information about the current link
h - go to the "homepage"
u - show the URL history
Q - quit retawq[/url]