Forum: Blackrhino - Help forum for the Blackrhino Linux distro for the PS2. No warez allowed!


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Some problems using Linux from SMB
  

Results 1 to 8 of 8
  1. #1 Some problems using Linux from SMB 
    luisin is offline Registered User
    Join Date
    Oct 2009
    Posts
    16
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Hi All,

    Yesterday I've downloaded the ps2linux_loop and related files from ps2 nuclearfall.

    Everything goes well, network, sound, usb (with irx from sce), xmms, dilo, almost all the things runs fine, I'm very happy running linux in the play.

    I'm using kloader 2.1 with initrd.usb2.smb.gz and vmlinux_fat_and_slim_v4.gz. on my sch-79001 ntsc. "PS2Version: US 0220 05/09/2006 DMS4 Hardware Version: 1.0 SE Lite ToxicBIOS Flash Version: FF.7F ToxicBIOS Config Version: 1.2"

    Today I was trying something new, and start to play with dselect and it hangs everything when update package list, it hangs in:
    "Merging available information" - UPDATE - I've read in nuclearfall that this is a known problem in the package.



    Another thing, I've downloaded pidgin_build_2.6.2 from your 4shared, just to test something new, and when I was extracting files with tar the process stop with a "Segmentation Fault" error and the system become unstable.

    Just to check, I've put the original ps2linux_loop and the swap files again and the problems are the same.

    Do it again from the begining (this time only copying and extracting pidgin), the error this time is (after half an hour of extraction):

    "EXT3-fs error (device loop(7,0)): read_inode_bitmap: Cannot read inode bitmap - block group = 44, inode_bitmap = 360450".


    Let me know if I can help you testing something on my console, I'm not an expert but I can help in my free time.

    BTW: I'm so surprised with kloader and the smb version of initrd that I want to play all the time with this, is an excelent combination for the slims.

    Sorry but English is not my primary language.

    Thanks
    Luis
    Attached Files
    Last edited by luisin; 05-24-2010 at 09:59 AM. Reason: Added error details.
    Reply With Quote  

  2. #2  
    Mega Man's Avatar
    Mega Man is offline Member
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    519
    Downloads
    0
    Uploads
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    5
    Likes Received
    35
    It is possible that the slim PSTwo sometimes looses network packages. This is already a know problem. This may cause the problem you have seen. It can also be caused by too less memory. If you add a swap device it may be more stable and faster. You can use a USB memory stick as swap device. USB is not stable on slim PSTwo, but it seems to be stable enough when using one swap device only.
    Reply With Quote  

  3. #3  
    luisin is offline Registered User
    Join Date
    Oct 2009
    Posts
    16
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Hi Mega Man, thanks for your answer.

    When my internal network is on heavy load, the problems seems to be more often, so, it's about packet lost.

    Today I move swap to usb (not verbatin copy here):

    swapoff /smb/loop1

    mount /dev/sda1 /mnt/usb
    swapon /mnt/usb/swapfile


    but after some minutes, when I made some heavy things, like install dillo2.1.1 I see the pendrive light to start flashing and it keeps in this situation for hours, and get no more response from the system.

    The pendrive works fine with another programs, like uLE (read/write), kernelloader and so on....

    Another test, out of x-window,

    cp /mnt/smb/..../swapfile /mnt/usb/ps2linux/swapfile
    Pendrive start to flashing, packets are sent from my pc, but after 3 hours of light blinking, I reset the ps2 and check the pendrive, it copy only 10mb of file.

    So, I have less luky with usb than smb.

    Is any flag or parameter or something that can I do to force TCP instead of UDP????

    Thanks
    Luis
    Reply With Quote  

  4. #4  
    Mega Man's Avatar
    Mega Man is offline Member
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    519
    Downloads
    0
    Uploads
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    5
    Likes Received
    35
    Seems like you have the USB and network heavy load problem. When I have finished the second version of the live DVD and when I have some time, I will check if I could solve the problems or write another workaround for the slim PSTwo.

    I thought about a swap device and not a swap file. I assume that the swap device is more stable, but I can't promise this.
    I was thinking about:
    mkswap /dev/sda1
    swapon /dev/sda1

    Caution: This will delete anything in partition 1 of the USB stick.

    I don't know a way to force samba to use TCP, but with nfs it is possible: http://forums.ps2dev.org/viewtopic.php?t=12969
    Reply With Quote  

  5. #5  
    Dimsok is offline Member
    Join Date
    Mar 2010
    Posts
    45
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    1
    Can someone help me with making it work? I have scph 700008. Samba work good with opl and sms but i can't use linux with it also i tried so many times. I did all what i should. Have two files of ps2linux_loop and swapfile in shared ps2linux folder. And hosts, init_smb,intface,resolv,win3 in mc0/kloader. But it say that ps2linux_loop not found.
    Ip of my ps2 is 192.168.0.10 Ip of my windowsxp Pc is 192.168.0.1 Name of my pc is Dimsok-PC So can someone tell me where i made mistake?

    Hosts I don't know what should i change in the first string. so i remain it's by default

    127.0.0.1 localhost.localdomain localhost
    192.168.0.10 ps2
    192.168.0.1 Dimsok-PC

    init_smb I have no password and login in samba so should i just remain it by default?

    #!/bin/sh

    # CUSTOMIZE THIS SECTION
    ip_address=192.168.0.1
    netmask=255.255.255.0
    gateway=192.168.0.10
    sharename="//Dimsok-PC/ps2linux"
    username="user"
    password="pwd"
    #
    sleep 5
    #echo " Enter X to drop to shell prompt, any other entry to continue:"
    #read -p " > " leave
    #if [ "$leave" = "X" ]; then
    # exec bash
    #fi

    error_exit()
    {
    echo >&2 "Boot failed, running bash..."
    exec bash
    }

    ifconfig eth0 $ip_address netmask $netmask
    ifconfig eth0 up
    route add default gw $gateway
    sleep 3

    echo "Mounting /smb/ps2linux_loop on /newroot"
    smbmount $sharename /smb -o rw,username=$username,password=$password
    sleep 3
    mount -t ext3 -o loop /smb/ps2linux_loop /newroot || error_exit
    sleep 3
    cp /etc/hosts /newroot/etc
    cp /etc/resolv.conf /newroot/etc
    cp /etc/network/interfaces /newroot/etc/network
    echo "mount -t smbfs -o username=$username,password=$password $sharename /mnt/smb" > /newroot/etc/init.d/smbswap
    echo "losetup /dev/loop1 /mnt/smb/swapfile" >> /newroot/etc/init.d/smbswap
    echo "swapon /dev/loop1" >> /newroot/etc/init.d/smbswap
    cd /newroot/etc/init.d
    chmod 755 smbswap
    cd /
    if [ ! -d "/newroot/oldroot" ]; then
    mkdir /newroot/oldroot || error_exit
    fi
    #exec bash
    echo "Changing root."
    pivot_root /newroot /newroot/oldroot || error_exit

    umount /oldroot/proc
    echo "Starting init."
    exec /sbin/init "$@"

    intface I don't know why so many strings in bottom in that file. What should i write there. Ip of pc, gateway as i did?

    # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
    # /usr/share/doc/ifupdown/examples for more information.

    auto lo
    iface lo inet loopback

    auto eth0
    ## UNCOMMENT FOR DYNAMIC ASSIGNMENT
    #iface eth0 inet dhcp
    iface eth0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    network 192.168.0.1
    broadcast 192.168.0.255
    gateway 192.168.0.10

    resolf What should i write here? Just ps's name and it's ip?

    search
    Dimsok-PC 192.168.0.1

    win3 I shouldn't changy anything in that file?

    mount /mnt/sda1
    export TV_MARGIN_X=16
    export TV_MARGIN_Y=16
    export DISPLAY=:0
    mcookie=$(mcookie)
    xauth add :0 . $mcookie
    sudo X :0 -screen 0 NTSC,inter -auth ~/.Xauthority -once -terminate -nolisten tcp &
    sleep 4
    /usr/local/bin/startjs &
    /usr/local/bin/fluxbox -display :0
    xauth remove :0

    So could someone tell me what should i change to make it work? It's said that ps2linux_loop not found
    Reply With Quote  

  6. #6  
    Mega Man's Avatar
    Mega Man is offline Member
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    519
    Downloads
    0
    Uploads
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    5
    Likes Received
    35
    You need to exchange ip address and gateway (custom area and eth0 config). You need to enable Internet sharing on your windows pc for this configuration.
    Reply With Quote  

  7. #7  
    Dimsok is offline Member
    Join Date
    Mar 2010
    Posts
    45
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    1
    Thanks for answering mega man. I just let it as in opl. In opl it's worked good with such settings
    Reply With Quote  

  8. #8  
    deba5er's Avatar
    deba5er is online now Moderator
    Join Date
    Jan 2006
    Posts
    592
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    8
    @Dimsok

    Try this:

    ip_address=192.168.0.10
    netmask=255.255.255.0
    gateway=192.168.0.1
    PS2 v9 NTSC, PS2 v12 NTSC, PS2 v15 VESA
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •