Xiangfu Liu | 1 Apr 2011 04:47
Gravatar

[PATCH] add default username and password Username: fn Password: fn

diff --git a/src/sysconfig.c b/src/sysconfig.c
index c82c497..194065f 100644
--- a/src/sysconfig.c
+++ b/src/sysconfig.c
 <at>  <at>  -118,7 +118,9  <at>  <at>  static struct sysconfig sysconfig = {
 	.version = SYSCONFIG_VERSION,
 	.dhcp_enable = 0,
 	.ip = 0xc0a8002a,
-	.netmask = 0xffffff00
+	.netmask = 0xffffff00,
+	.login = "fn",
+	.password = "fn"
 };

 #define FMT_IP_LEN (4*3+3*1+1)
 <at>  <at>  -154,6 +156,8  <at>  <at>  void sysconfig_load()
 	
 	if(readconfig(SYSCONFIG_FILE, &conf))
 		memcpy(&sysconfig, &conf, sizeof(struct sysconfig));
+	else
+		printf("no sysconfig.bin, FTP defualt U:fn P:fn\n");

 	if(sysconfig.dhcp_enable)
 		rtems_bsdnet_config.bootp = my_dhcp;
--

-- 
1.7.0.4

Sebastien Bourdeauducq | 1 Apr 2011 11:11

Re: [PATCH] add default username and password Username: fn Password: fn

Doesn't look like a good idea for me... it's a security problem a bit
too big.

S.

Gravatar

Re: [PATCH] add default username and password Username: fn Password: fn

On Fri, Apr 01, 2011 at 11:11:35AM +0200, Sebastien Bourdeauducq wrote:
> Doesn't look like a good idea for me... it's a security problem a bit
> too big.

I agree, hardcode passwors and users in software is not good follow,
look ie Siemens and stux..

As i told xiangfu by irc yday. we can arrange if is not tooo much
overload and mess, a wellcome procedure to flickernoise in wich it will format
flash parition, get patches from the internet and will ask the user for
a user and password. All this should happen once, you call this an
assisted recovery prosedure for patches and flickernoise settings..

Comments?
> 
> S.
> 
> 
> _______________________________________________
> http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
> IRC: #milkymist <at> Freenode
> Twitter: www.twitter.com/milkymistvj
> Ideas? http://milkymist.uservoice.com
On Fri, Apr 01, 2011 at 11:11:35AM +0200, Sebastien Bourdeauducq wrote:
> Doesn't look like a good idea for me... it's a security problem a bit
> too big.

I agree, hardcode passwors and users in software is not good follow,
(Continue reading)

Xiangfu Liu | 1 Apr 2011 14:15
Gravatar

keybaord testing in Milkymist ont

Hi

I have test two keyboard in milkymist one.

the Dell keyboard not working in milkymist one
the BenQ works fine.

attach is the `lsusb` info of those keyboards in Linux system.

-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --

Bus 004 Device 012: ID 173d:0004  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x173d 
  idProduct          0x0004 
  bcdDevice            1.50
  iManufacturer           0 
  iProduct                0 
(Continue reading)

Xiangfu Liu | 1 Apr 2011 14:21
Gravatar

Re: keybaord testing in Milkymist ont

On 04/01/2011 08:15 PM, Xiangfu Liu wrote:
> Hi
> 
> I have test two keyboard in milkymist one.
> 
> the Dell keyboard not working in milkymist one
> the BenQ works fine.
> 
> attach is the `lsusb` info of those keyboards in Linux system.
> 

attach is the boot log

--

-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --
Attachment (keyboard.attach.m1.log): application/octet-stream, 10 KiB
On 04/01/2011 08:15 PM, Xiangfu Liu wrote:
> Hi
> 
> I have test two keyboard in milkymist one.
> 
> the Dell keyboard not working in milkymist one
> the BenQ works fine.
> 
> attach is the `lsusb` info of those keyboards in Linux system.
> 
(Continue reading)

Gravatar

Re: keybaord testing in Milkymist ont Logitech Clasic Keyboard

Attached dmesg and lsusb log for a Logitech Clasic Keyboard
Logitech Clasic Keyboard

[124416.880042] usb 2-3: new low speed USB device using ohci_hcd and address 2
[124417.094064] usb 2-3: New USB device found, idVendor=046d, idProduct=c315
[124417.094073] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[124417.094080] usb 2-3: Product: Logitech USB Keyboard
[124417.094085] usb 2-3: Manufacturer: Logitech
[124417.094312] usb 2-3: configuration #1 chosen from 1 choice
[124417.477406] usbcore: registered new interface driver hiddev
[124417.486274] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:02.0/usb2/2-3/2-3:1.0/input/input5
[124417.486734] generic-usb 0003:046D:C315.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech
Logitech USB Keyboard] on usb-0000:00:02.0-3/input0
[124417.486792] usbcore: registered new interface driver usbhid
[124417.487099] usbhid: v2.6:USB HID core driver

Bus 002 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x046d Logitech, Inc.
  idProduct          0xc315 Classic New Touch Keyboard
  bcdDevice           28.00
(Continue reading)

Sebastien Bourdeauducq | 1 Apr 2011 16:38

Re: [PATCH] add default username and password Username: fn Password: fn

On Fri, 2011-04-01 at 07:13 -0500, Cristian Paul Peñaranda Rojas wrote:
> As i told xiangfu by irc yday. we can arrange if is not tooo much
> overload and mess, a wellcome procedure to flickernoise in wich it will format
> flash parition, get patches from the internet and will ask the user for
> a user and password. All this should happen once, you call this an
> assisted recovery prosedure for patches and flickernoise settings..

Why not, except that an internet connection may not be available - I
prefer that the patches are preloaded so it can work out of the box
without internet. Also the login/password are only for ftp and telnet
access, which is a relatively advanced use case, so better not bother
people with that right away.

S.

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist <at> Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com
Xiangfu Liu | 2 Apr 2011 08:13
Gravatar

[PATCH 1/3] delete input callbacks from last


Signed-off-by: Xiangfu Liu <xiangfu@...>
---
 src/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input.c b/src/input.c
index 32552da..942366b 100644
--- a/src/input.c
+++ b/src/input.c
 <at>  <at>  -380,7 +380,7  <at>  <at>  void input_delete_callback(input_callback cb)
 {
 	int i;

-	for(i=0;i<MAX_CALLBACKS;i++) {
+	for(i=(MAX_CALLBACKS-1);i>=0;i--) {
 		if(callbacks[i] == cb)
 			callbacks[i] = NULL;
 	}
--

-- 
1.7.0.4

Xiangfu Liu | 2 Apr 2011 08:13
Gravatar

[PATCH 2/3] move all fbgrab to one module


Signed-off-by: Xiangfu Liu <xiangfu@...>
---
 src/Makefile   |    2 +-
 src/fbgrab.c   |  160 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/fbgrab.h   |   23 +++++++
 src/pngload.c  |   59 +++++++++++++++++++
 src/pngload.h  |    3 +-
 src/shellext.c |  174 ++------------------------------------------------------
 6 files changed, 250 insertions(+), 171 deletions(-)
 create mode 100644 src/fbgrab.c
 create mode 100644 src/fbgrab.h

diff --git a/src/Makefile b/src/Makefile
index e29f514..90526e0 100644
--- a/src/Makefile
+++ b/src/Makefile
 <at>  <at>  -15,7 +15,7  <at>  <at>  OBJDIR=obj
 BINDIR=bin

 # base
-OBJS=shellext.o sysconfig.o config.o fb.o input.o reboot.o osc.o pngload.o flashvalid.o main.o
+OBJS=shellext.o sysconfig.o config.o fb.o input.o reboot.o osc.o pngload.o flashvalid.o main.o fbgrab.o

 # GUI
 OBJS+=messagebox.o filedialog.o resmgr.o guirender.o performance.o cp.o keyboard.o ir.o audio.o
midi.o oscsettings.o dmxspy.o dmxtable.o dmx.o videoin.o patcheditor.o monitor.o firstpatch.o
sysettings.o about.o flash.o shutdown.o
diff --git a/src/fbgrab.c b/src/fbgrab.c
new file mode 100644
(Continue reading)

Xiangfu Liu | 2 Apr 2011 08:13
Gravatar

[PATCH 3/3] add global shortcuts module bind Ctrl + F12 to 'fbgrab'


Signed-off-by: Xiangfu Liu <xiangfu@...>
---
 src/Makefile    |    2 +-
 src/main.c      |    4 +-
 src/reboot.c    |   52 ---------------------------------------------------
 src/reboot.h    |   23 ----------------------
 src/shortcuts.c |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/shortcuts.h |   23 ++++++++++++++++++++++
 6 files changed, 82 insertions(+), 78 deletions(-)
 delete mode 100644 src/reboot.c
 delete mode 100644 src/reboot.h
 create mode 100644 src/shortcuts.c
 create mode 100644 src/shortcuts.h

diff --git a/src/Makefile b/src/Makefile
index 90526e0..e1a8563 100644
--- a/src/Makefile
+++ b/src/Makefile
 <at>  <at>  -15,7 +15,7  <at>  <at>  OBJDIR=obj
 BINDIR=bin

 # base
-OBJS=shellext.o sysconfig.o config.o fb.o input.o reboot.o osc.o pngload.o flashvalid.o main.o fbgrab.o
+OBJS=shellext.o sysconfig.o config.o fb.o input.o shortcuts.o osc.o pngload.o flashvalid.o main.o fbgrab.o

 # GUI
 OBJS+=messagebox.o filedialog.o resmgr.o guirender.o performance.o cp.o keyboard.o ir.o audio.o
midi.o oscsettings.o dmxspy.o dmxtable.o dmx.o videoin.o patcheditor.o monitor.o firstpatch.o
sysettings.o about.o flash.o shutdown.o
(Continue reading)


Gmane