Talk:Running Debian on Thecus n4100

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Hi

I'm using Gentoo on n2100 and wrote the kernel to flash

do you have any contacts?

perhaps this might help you:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00d00000 00020000 "ramdisk"
mtd2: 00160000 00020000 "kernel"
mtd3: 00120000 00020000 "user"
mtd4: 00001000 00020000 "RedBoot config"
mtd5: 00020000 00020000 "FIS directory"


calc your max kernel size in Bytes:

# printf "%d\n" `grep "kernel" /proc/mtd | awk '{print  "0x"$2}'`


flash kernel

# flashcp -v /usr/src/linux/arch/arm/boot/zImage /dev/mtd2


RedBoot> fis load ramdisk
RedBoot> fis load kernel
RedBoot> exec -c "console=ttyS0,115200 root=/dev/md0"

optional: RAM-Disk (my one is 32MB)


CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=2
CONFIG_BLK_DEV_RAM_SIZE=32768
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024

size for your Ramdisk

# printf "%d\n" `grep "ramdisk" /proc/mtd | awk '{print  "0x"$2}'`

flash ramdisk

# flashcp -v /ramdisk.arm /dev/mtd1
RedBoot> fis load ramdisk
RedBoot> fis load kernel
RedBoot> exec -c "console=ttyS0,115200 root=/dev/ram0 initrd=0xa0800000,42M mem=512M@0xa0000000 ramdisk_size=33554432"