Skip to content

Instantly share code, notes, and snippets.

@ryo
ryo / udpffff
Last active December 28, 2015 02:49
send udp packet that cksum 0xffff.
#!/bin/sh
DST=192.168.2.123
SRC=192.168.0.2
DSTPORT=11111
SRCPORT=12345
perl -e '
sub xip{ pack("C4",map(~(0+$_),split("\\.",shift))) }
sub xn{ pack("n",map(~(0+$_),shift)) }
U-Boot 2009.08-00495-g10adc6d (Apr 24 2012 - 13:27:04)
CPU: Freescale i.MX 6 family 0.0V at 792 MHz
Temperature: can't get valid data!
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
NetBSD/evbarm (nitrogen) booting ...
initarm: Configuring system, CLIDR=1110000003 CTR=0x83338003
arm32_bootmem_init: memstart=0x10800000, memsize=0x3f800000, kernelstart=0x10800000
arm32_bootmem_init: kernelend=0x10aaa000
arm32_bootmem_init: adding 129707 free pages: [0x10aaa000..0x4fffffff] (VA 0x80aaa000)
arm32_kernel_vm_init: 0 L2 pages are needed to map 0x2dc000 kernel bytes
arm32_kernel_vm_init: allocating page tables for kernel vmadd_pages: adding pv 0x80a8cc24 (pa 0x10aaa000, va 0x80aaa000, 1 pages) at tail
add_pages: appending pv 0x80a9ad90 (0x10aac000..0x10aaffff) to 0x10aaa000..0x10aabfff
add_pages: appending pv 0x80a8cde8 (0x10ab0000..0x10ab1fff) to 0x10aaa000..0x10aaffff
add_pages: appending pv 0x80a8cdfc (0x10ab2000..0x10ab3fff) to 0x10aaa000..0x10ab1fff
@ryo
ryo / gist:6f40f84d369268293294
Created August 10, 2014 04:53
dmesg.nitrogen6x.20140810
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 6.99.49 (NITROGEN6X) #579: Sun Aug 10 13:46:55 JST 2014
ryo@phenomena:/src/cvs/NetBSD/sys/arch/evbarm/compile/NITROGEN6X
total memory = 1016 MB
avail memory = 1003 MB
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.1 (NITROGEN6X) #1125: Sat Sep 6 05:04:11 JST 2014
ryo@phenomena:/src/cvs/NetBSD/sys/arch/evbarm/compile/NITROGEN6X
total memory = 1016 MB
avail memory = 1000 MB
@ryo
ryo / gist:352782381c0d50842ae8
Last active August 29, 2015 14:06
nitrogen6x.MULTIPROCESSOR.dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.1 (NITROGEN6X) #1132: Sun Sep 7 05:54:59 JST 2014
ryo@phenomena:/src/cvs/NetBSD/sys/arch/evbarm/compile/NITROGEN6X
total memory = 1016 MB
avail memory = 1000 MB
NetBSD/evbarm (nitrogen6) booting ...
initarm: Configuring system (4 cpus, hatched 0xe), CLIDR=1110000003 CTR=0x83338003
arm32_bootmem_init: memstart=0x10000000, memsize=0x40000000, kernelstart=0x10800000
arm32_bootmem_init: kernelend=0x10e78000
arm32_bootmem_init: adding 129220 free pages: [0x10e78000..0x4fffffff] (VA 0x80e78000)
arm32_bootmem_init: adding 1024 free pages: [0x10000000..0x107fffff] (VA 0x80000000)
arm32_kernel_vm_init: 0 L2 pages are needed to map 0x6c8000 kernel bytes
arm32_kernel_vm_init: allocating page tables for kernel vmadd_pages: adding pv 0x80e4c260 (pa 0x10e78000, va 0x80e78000, 2 pages) at tail
add_pages: appending pv 0x80e4cef4 (0x10e7c000..0x10e7dfff) to 0x10e78000..0x10e7bfff
add_pages: appending pv 0x80e4cf08 (0x10e7e000..0x10e7ffff) to 0x10e78000..0x10e7dfff
@ryo
ryo / netbsd.dmesg.cubox-i1
Created September 30, 2014 17:25
dmesg of NetBSD/cubox-i1
CuBox-i U-Boot > tftpboot 10800000 netbsd.bin; go 10800000"
Using FEC device
TFTP from server 172.31.185.12; our IP address is 172.31.185.27
Filename 'netbsd.bin'.
Load address: 0x10800000
Loading: #################################################################
#################################################################
#################################################################
##############################T ###################################
#################################################################
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.1 (NITROGEN6X) #1440: Wed Nov 5 17:33:02 JST 2014
Welcome to NetBSD!
U-Boot 2014.07-00136-gf870252 (Sep 22 2014 - 09:15:50)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: Nitrogen6_max
I2C: ready
DRAM: 3.8 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB, total 2 MiB
No panel detected: default to HDMI