User Tools

Site Tools


goflex:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
goflex:start [2011/05/04 00:44] neutronscottgoflex:start [2023/11/04 22:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Seagate GoFlex Home Hacks // Debian ======
 +
 Lots of people working on this. But the information is scattered, and I've not seen the point to some of it... Guess if you want something done right, you have to do it yourself? ;) Lots of people working on this. But the information is scattered, and I've not seen the point to some of it... Guess if you want something done right, you have to do it yourself? ;)
  
 I started this 4/23 so this is a work-in-progress, aka a severely disorganized page. Wiki clean-up usually happens after I put the device back together, and that could take awhile since my free time is limited. I started this 4/23 so this is a work-in-progress, aka a severely disorganized page. Wiki clean-up usually happens after I put the device back together, and that could take awhile since my free time is limited.
 +
 +[edit: 8/1] I guess it'll be some time. This project was short lived. I got debian on it and then it's done. ha. been running fine just another computer on the network now...
 +
 +===== bootrom disassembly =====
 +someone with dockstar-like device (bootrom 1.11) asked for my dump to compare and see why they cannot boot from serial as we can. my results:
 +
 +ASCII dump from U-boot: http://goflex.scottn.us/bootrom121.txt \\
 +Binary file: http://goflex.scottn.us/bootrom121.bin \\
 +Simple objdump disassemble: http://goflex.scottn.us/bootrom121.dis
 +
  
 ===== external serial port ===== ===== external serial port =====
Line 11: Line 23:
  
 it says it includes the debian patches, but it comes up as normal 2.6.32... meh. it says it includes the debian patches, but it comes up as normal 2.6.32... meh.
-I added a bit also to arch/arm/kernel/head-common.S so that we need not pass arcNumber. This would help later for making installable without editing bootloader. :P+I added a bit also to arch/arm/kernel/head-common.S so that we need not pass arcNumber. This would help later for making installable without editing bootloader. :P It seemed that although the Goflex Home has USB/IDE enabled in U-Boot, the arcNumber variable is not. This was partially verified later by a grep of the u-boot sources supplied in GPL release by Seagate.
  
 We can start serial commands at u-boot to load USB key with [[http://goflex.scottn.us/uMulti-2.6.32-5-kirkwood-goflex|my kernel+initrd]]. For example: We can start serial commands at u-boot to load USB key with [[http://goflex.scottn.us/uMulti-2.6.32-5-kirkwood-goflex|my kernel+initrd]]. For example:
Line 22: Line 34:
 [[goflex:debianboot]] [[goflex:debianboot]]
  
-Creation of the USB key or even ext2 partition on the SATA can be easy with debootstrap. I will attempt emdebian's soon to see if it's dependencies are a bit less a tangled web of bloat. ;)+Creation of the USB key or even ext2 partition on the SATA can be easy with debootstrap. I will attempt emdebian's soon to see if it's dependencies are a bit less a tangled web of bloat. ;) [**edit** nah I probably won't. Debian's running well, just follow [[http://linux.koolsolutions.com/2009/01/07/howto-tell-apt-get-not-to-install-recommends-packages-in-debian-linux/|this guide]] to ensure dumb things like X11 libraries getting installed with openssh doesn't happen.]
  
 http://packages.debian.org/search?arch=armel&keywords=debootstrap http://packages.debian.org/search?arch=armel&keywords=debootstrap
Line 104: Line 116:
  
 ===== lcd4linux ===== ===== lcd4linux =====
-Somewhat unrelated, but I attached a Coby DP-152 I got for $5. Edited the example a bit. 500ms refreshes seem to take about 11% CPU so 5s refreshes take 1% which is more acceptable. Large thread about these little 128x128 LCDs found here: http://forum.doozan.com/read.php?2,2435 +Somewhat unrelated, but I attached a Coby DP-152 I got for $5. Edited the example a bit. Here's [[http://goflex.scottn.us/picframe/lcd4linux.conf|mine]]. I think it's usable now, but I'm uncertain really what stats I want displayed or how yet. ;) Large thread about these little 128x128 LCDs found here: http://forum.doozan.com/read.php?2,2435
- +
-<file - lcd4linux.conf> +
-Display st2205u { +
-    Driver     'st2205' +
-    Port       '/dev/sdb' +
-    Font       '6x8' +
-    Foreground 'ffffff' +
-    Background '000000' +
-    Basecolor  '000000' +
-+
- +
-Widget Banner { +
-    class 'Text' +
-    expression 'GoFlex Home NAS' +
-    width 21 +
-    align 'C' +
-    Background '008000' +
-    Foreground 'ffffff' +
-+
- +
-Widget Users { +
-    class  'Text' +
-    expression exec('uptime | cut -f2 -d,', 60000) +
-    width  8 +
-    align  'L' +
-    update tick +
-    Background 'FFFFFF00' +
-+
- +
- +
-Widget RAM { +
-    class  'Text' +
-    expression (meminfo('MemFree') + meminfo('Cached') + meminfo('Buffered'))/1024 +
-    postfix ' MB RAM' +
-    width  11 +
-    precision 0 +
-    align  'R' +
-    update tick +
-    Background 'FFFFFF00' +
-+
- +
-Widget Busy { +
-    class 'Text' +
-    expression proc_stat::cpu('busy', 5000) +
-    prefix 'Busy' +
-    postfix '%' +
-    width 13 +
-    precision 1 +
-    align 'R' +
-    update tick +
-    Foreground 'ffffff' +
-    Background 'FFFFFF00' +
-+
- +
-Widget BusyBar { +
-    class 'Bar' +
-    expression  proc_stat::cpu('busy',   5000) +
-    expression2 proc_stat::cpu('system', 5000) +
-    length 21 +
-    direction 'E' +
-    update tack +
-    Foreground 'ffffff' +
-    Background '00000080' +
-    BarColor0 '8f8fff' +
-    BarColor1 'ff8f8f' +
-+
- +
-Widget Load { +
-    class 'Text' +
-    expression loadavg(1) +
-    prefix 'Load' +
-    postfix loadavg(1)>1.0?'!':'+
-    width 13 +
-    precision 1 +
-    align 'R' +
-    update tick +
-    Foreground 'ffffff' +
-    Background 'FFFFFF00' +
-+
- +
-Widget LoadBar { +
-    class 'Bar' +
-    expression  loadavg(1) +
-    max 2.0 +
-    length 21 +
-    direction 'E' +
-    update tack +
-    Foreground 'ffffff' +
-    Background '00000080' +
-    BarColor0 '8f8fff' +
-    BarColor1 'ff8f8f' +
-+
- +
- +
-Widget Disk { +
-    class 'Text' +
-    # disk.[rw]blk return blocks, we assume a blocksize of 512 +
-    # to get the number in kB/s we would do blk*512/1024, which is blk/2 +
-    # expression (proc_stat::disk('.*', 'rblk', 500)+proc_stat::disk('.*', 'wblk', 500))/2 +
-    # with kernel 2.6, disk_io disappeared from /proc/stat but moved to /proc/diskstat +
-    # therefore you have to use another function called 'diskstats': +
-    expression diskstats('hd.', 'read_sectors', 5000) + diskstats('hd.', 'write_sectors', 5000) +
-    prefix 'disk' +
-    postfix ' ' +
-    width 13 +
-    precision 0 +
-    align 'R' +
-    update tick +
-    Foreground 'ffffff' +
-    Background 'FFFFFF00' +
-+
- +
-Widget DiskBar { +
-    class 'Bar' +
-    expression  diskstats('hd.', 'read_sectors',  5000) +
-    expression2 diskstats('hd.', 'write_sectors', 5000) +
-    length 21 +
-    direction 'E' +
-    update tack +
-    Foreground 'ffffff' +
-    Background '00000080' +
-    BarColor0 '8f8fff' +
-    BarColor1 'ff8f8f' +
-+
- +
-Widget Eth0 { +
-    class 'Text' +
-    expression (netdev('eth0', 'Rx_bytes', 5000)+netdev('eth0', 'Tx_bytes', 5000))/1024 +
-    prefix 'eth0' +
-    postfix 'k' +
-    width 13 +
-    precision 1 +
-    align 'R' +
-    update tick +
-    Foreground 'ffffff' +
-    Background 'FFFFFF00' +
-+
- +
-Widget Eth0Bar { +
-    class 'Bar' +
-    expression  netdev('eth0', 'Rx_bytes', 5000) +
-    expression2 netdev('eth0', 'Tx_bytes', 5000) +
-    length 21 +
-    direction 'E' +
-    update tack +
-    Foreground 'ffffff' +
-    Background '00000080' +
-    BarColor0 '8f8fff' +
-    BarColor1 'ff8f8f' +
-+
- +
-Widget Uptime { +
-    class 'Text' +
-    expression uptime('%d days %H:%M:%S'+
-    width 20 +
-    align 'R' +
-    prefix 'Up ' +
-    update 1000 +
-    Background 'FFFFFF00' +
-+
- +
-Layout mylayout { +
-    Row01.Col01 'Banner' +
-    Row02.Col01 'Users' +
-    Row02.Col10 'RAM' +
-    Row04.Col01 'Busy' +
-    Row05.Col01 'BusyBar' +
-    Row06.Col01 'Load' +
-    Row07.Col01 'LoadBar' +
-    Row08.Col01 'Disk' +
-    Row09.Col01 'DiskBar' +
-    Row10.Col01 'Eth0' +
-    Row11.Col01 'Eth0Bar' +
-    Row16.Col01 'Uptime' +
-+
- +
-############+
  
-Display 'st2205u' 
-Layout 'mylayout' 
  
-Variables { 
-    tick 5000 
-    tack 2000 
-    minute 60000 
-} 
-</file> 
goflex/start.1304469863.txt.gz · Last modified: 2023/11/04 22:29 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki