ADB over TCP
To make ADB work in iMX51 using TCP:
*In your host machine:
- Install android SDK
- set ADBHOST=BOARD_IP (setenv ADBHOST=xxx.xxx.xxx.xxx)
- adb kill-server
*In your board:
- make sure that ro.secure property is *not* set when the adbd daemon is launched, so edit the file default.prop
- make sure that /dev/android_adb or /dev/android do *not* exist
- stop adbd
- start adbd
Now you will be able to list the device:
hamilton@saygon:/opt/work/androidsdk/android-sdk-linux_86/tools$ ./adb kill-server
hamilton@saygon:/opt/work/androidsdk/android-sdk-linux_86/tools$ ./adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
emulator-5554 device
Reclame na Anatel
Se você é mais um que vive em pé de guerra com os péssimos serviços das operadoras de telefonia e internet, acesse o site abaixo e registre suas reclamações:
Ou então: www.anatel.gov.br >> Fale Conosco >> Atendimento Eletrônico >> Avançar.
A página é feita em ASP e pelo governo, então não espere bons resultados com Firefox,Chrome ou Opera.
Garanto que é mais eficaz do que ficar postanto comentários nos blogs, isso pelo menos ajuda a colocar esses péssimos provedores de serviços em um ranking. Tudo bem que a Anatel pouco faz, porém se podemos infernizá-los… não podemos deixar essa oportunidade de lado.
IMX51BBG Uboot configuration with NFS
setenv bootdelay 3
setenv netdev eth0
setenv ethprime FEC0
setenv uboot_addr 0xa0000000
setenv uboot u-boot.bin
setenv kernel uImage
setenv rd_loadaddr 0×90B00000
setenv bootcmd_net ‘run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm’
setenv bootcmd_android ‘run bootargs_base bootargs_android; mmcinit;cp.b 0×100000 ${loadaddr} 0×250000; cp.b 0×400000 ${rd_loadaddr} 0×4B000; bootm ${loadaddr} ${rd_loadaddr}’
setenv prg_uboot ‘tftpboot ${loadaddr} ${uboot}; protect off ${uboot_addr} 0xa003ffff; erase ${uboot_addr} 0xa003ffff; cp.b ${loadaddr} ${uboot_addr} ${filesize}; setenv filesize; saveenv’
setenv ethact FEC0
setenv ethaddr 00:04:9f:00:e4:d3
setenv bootcmd_nfs ‘run bootargs_base bootargs_android bootargs_nfs; bootm’
setenv bootargs_base ’setenv bootargs console=ttymxc0,115200′
setenv bootargs_nfs ’setenv bootargs ${bootargs} ip=dhcp root=/dev/nfs nfsroot=${serverip}:${nfsroot},v3,tcp’
setenv loadaddr 0×90800000
setenv bootfile uImage
setenv bootcmd ‘run bootcmd_nfs’
setenv nfsroot ‘/tftpboot/rootfs’
setenv filesize 21F334
setenv fileaddr 90800000
setenv gatewayip 192.168.0.254
setenv ipaddr 192.168.0.221
setenv serverip 192.168.0.199
setenv bootargs_android ’setenv bootargs ${bootargs} init=/init androidboot.console=ttymxc0 video=mxcfb:1024×768M-16@60′
setenv bootargs ‘init=/init androidboot.console=ttymxc0 video=mxcfb:1024×768M-16@60 ip=dhcp root=/dev/nfs nfsroot=192.168.0.199:/tftpboot/rootfs,v3,tcp’
setenv stdin serial
setenv stdout serial
setenv stderr serial
Android DNS configuration
# DNS
setprop net.dns1 server_ip
setprop net.dns2 server_ip
DJBDNS security patch
Source http://marc.info/?l=djbdns&m=123613000920446&w=2
If the administrator of example.com publishes the example.com DNS data
through tinydns and axfrdns, and includes data for sub.example.com
transferred from an untrusted third party, then that third party can
control cache entries for example.com, not just sub.example.com. This is
the result of a bug in djbdns pointed out by Matthew Dempsky. (In short,
axfrdns compresses some outgoing DNS packets incorrectly.)
Even though this bug affects very few users, it is a violation of the
expected security policy in a reasonable situation, so it is a security
hole in djbdns. Third-party DNS service is discouraged in the djbdns
documentation but is nevertheless supported. Dempsky is hereby awarded
$1000.
The next release of djbdns will be backed by a new security guarantee.
In the meantime, if any users are in the situation described above,
those users are advised to apply Dempsky's patch and requested to accept
my apologies. The patch is also recommended for other users; it corrects
the bug without any side effects. A copy of the patch appears below.
---D. J. Bernstein
Research Professor, Computer Science, University of Illinois at Chicago
--- response.c.orig 2009-02-24 21:04:06.000000000 -0800
+++ response.c 2009-02-24 21:04:25.000000000 -0800
@@ -34,7 +34,7 @@
uint16_pack_big(buf,49152 + name_ptr[i]);
return response_addbytes(buf,2);
}
- if (dlen <= 128)
+ if ((dlen <= 128) && (response_len < 16384))
if (name_num < NAMES) {
byte_copy(name[name_num],dlen,d);
name_ptr[name_num] = response_len;
Enabling serial port in iMX27ADS
diff –exclude CVS –exclude .git -uNr linux-2.6.22/arch/arm/mach-mx27/board-mx27ads.h linux-2.6.22.modified/arch/arm/mach-mx27/board-mx27ads.h
— linux-2.6.22/arch/arm/mach-mx27/board-mx27ads.h 2009-10-23 19:03:32.000000000 -0200
+++ linux-2.6.22.modified/arch/arm/mach-mx27/board-mx27ads.h 2009-10-23 19:03:00.000000000 -0200
@@ -73,7 +73,7 @@
#define UART2_ENABLED 1
/* UART 3 configuration */
#define UART3_MODE MODE_DCE
-#define UART3_IR IRDA
+#define UART3_IR NO_IRDA
#define UART3_ENABLED 1
/* UART 4 configuration */
#define UART4_MODE MODE_DTE
Fighting Back PHP Reverse Shell
To avoid PHP reverse shell, just disable some functions in your php.ini:
disable_functions =system,passthru,escapeshellcmd,proc_open,apache_child_terminate,apache_get_modules,apache_get_version,
apache_getenv,apache_lookup_uri,apache_note,apache_request_headers,apache_reset_timeout,ap
This can handle this threat
Installing Python Setuptools
Using Python 2.6.x
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a
sh setuptools-0.6c9-py2.6.egg
Compile Kernel in Slackware64
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2
tar xvfj linux-2.6.31.tar.bz2
cd /var/adm/packages
removepkg *kernel*
cd /usr/src
ln -s linux-2.6.31 linux
cd /usr/include
rm -R scsi
ln -s /usr/src/linux/arch/ia64/include/asm
ln -s /usr/src/linux/include/asm-generic
ln -s /usr/src/linux/include/linux
ln -s /usr/src/linux/include/mtd
ln -s /usr/src/linux/include/rdma
ln -s /usr/src/linux/include/scsi
ln -s /usr/src/linux/include/sound
ln -s /usr/src/linux/include/video
cd /usr/src/linux
make mrproper
make menuconfig
->Configure your kernel
make
make install
Nome de alguns objetos em inglês
Just to poke fun at my friend Alan , I will take over the world!
É estranho como o nome de objetos que em português que são formados por palavras compostas (formado por duas/mais palavras distintas) são completamente diferentes em inglês. Este novo post conterá palavras que em inglês não são traducões obvias das mesmas em portugues.
A:
abaixo-assinado – petition
algodão-doce – candyfloss
alto-astral – in a very good mood
alto-falante – speaker
alto-forno – blast furnace
ano bissexto – leap year , intercalary year
arco-íris – rainbow
arranha-céu – skyscraper
asa-delta – hang glide
B:
banho-maria – double boiler ou bain-marie
batata-doce – sweet potato (tradução direta)
bate-boca – argument
bem-sucedido – successful
bem-vindo – welcome
borracha – eraser
C:
cabeça-dura – stubborn ou difficult
caneta tinteiro – fountain pen
casa decimal – decimal place
cofre-forte – vault
copo descartável – paper cup
corrente de emails (induzir alguem a repassar email) – chain letters
D:
dedo-duro – snitch
diapasão – tuning fork (este mereceu entrar na lista, pois o nome em ingles e’ uma palavra composta)
F:
feira-livre – street market
G:
guarda-chuva – umbrella (este quase todo mudo sabe)
guarda-costas – bodyguard
guarda-roupa – wardrobe
M:
máquina de datilografar – typewriter
maria-vai-com-as-outras – follow like sheep
matéria-prima – raw material
mochila – schoolbag
motor de quatro-tempos – four-stroke engine
R:
recém-casado – just married
recém-nascido – newborn
roda-gigante – Ferris wheel ou observation wheel
S:
saca-rolhas – bottle openers
-
Recent
- ADB over TCP
- Reclame na Anatel
- IMX51BBG Uboot configuration with NFS
- Android DNS configuration
- DJBDNS security patch
- Enabling serial port in iMX27ADS
- Fighting Back PHP Reverse Shell
- Installing Python Setuptools
- Compile Kernel in Slackware64
- Nome de alguns objetos em inglês
- Apache SSL with Virtual Hosts Using SNI
- Installing Slackware on encrypted volumes
-
Links